Bug 934834 - Intermittent browser_webgl-actor-test-16.js | There should be 2 cached program actors now. - Got 0, expected 2 | Got an error: firstProgramActor is undefined | Found an unexpected tab at the end of test run: doc_multiple-contexts.html. a=test-only
authorVictor Porof <vporof@mozilla.com>
Fri, 08 Nov 2013 10:45:17 +0200
changeset 167398 70556047758e15962e1d3d75144f120b20df9d46
parent 167397 724a412d965d256f5bf506c44b2b812b4b6ec437
child 167399 51f5ae29c5deafb652d8357ae79952cceaaac3e4
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs934834
milestone27.0a2
Bug 934834 - Intermittent browser_webgl-actor-test-16.js | There should be 2 cached program actors now. - Got 0, expected 2 | Got an error: firstProgramActor is undefined | Found an unexpected tab at the end of test run: doc_multiple-contexts.html. a=test-only
browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js
--- a/browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js
+++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js
@@ -40,16 +40,18 @@ function ifWebGLSupported() {
   let globalCreated = observe("content-document-global-created");
   reload(target);
 
   yield globalDestroyed;
   let programs = yield front.getPrograms();
   is(programs.length, 0,
     "There should be no cached program actors yet.");
 
+  yield once(front, "program-linked");
+  yield once(front, "program-linked");
   yield globalCreated;
   let programs = yield front.getPrograms();
   is(programs.length, 2,
     "There should be 2 cached program actors now.");
 
   yield checkHighlightingInTheSecondPage(programs[0], programs[1]);
   ok(true, "The cached programs behave correctly after navigating forward and reloading.");