浏览代码

Fix issue with validation tests

Gary Hsu 6 年之前
父节点
当前提交
3381fc8eb2
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/validation/validation.js

+ 3 - 0
tests/validation/validation.js

@@ -171,6 +171,9 @@ function runTest(index, done) {
         done(false);
     }
 
+    // Clear the plugin activated observables in case it is registered in the test.
+    BABYLON.SceneLoader.OnPluginActivatedObservable.clear();
+
     var test = config.tests[index];
     var container = document.createElement("div");
     container.id = "container#" + index;