Bug 885140 - Move calls to testAttempted() before mouse click, in case it isn't getting called. r=smaug, a=test-only
authorBob Owen <bobowencode@gmail.com>
Wed, 07 Aug 2013 14:17:15 +0100
changeset 153748 e22f0e9ed1db0aee5fd74148220bcb4ed64ffe0f
parent 153747 3a5b3e09a12845c4a8394e3b02abc301d2cbeadf
child 153749 551c1859c61a0e82d924385475100393dc6da9a2
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, test-only
bugs885140
milestone25.0a2
Bug 885140 - Move calls to testAttempted() before mouse click, in case it isn't getting called. r=smaug, a=test-only
content/html/content/test/test_iframe_sandbox_navigation.html
--- a/content/html/content/test/test_iframe_sandbox_navigation.html
+++ b/content/html/content/test/test_iframe_sandbox_navigation.html
@@ -193,18 +193,18 @@ function modify_if_8() {
     // need to return here since we end up in an infinite loop otherwise
     return;
   }
 
   var if_8 = document.getElementById('if_8');
   window.modified_if_8 = true;
 
   if_8.sandbox = 'allow-scripts';
+  testAttempted();
   sendMouseEvent({type:'click'}, 'a_button');
-  testAttempted();
 }
 
 window.modified_if_9 = false;
 
 function reload_if_9() {
   var if_9 = document.getElementById('if_9');
   if_9.src = 'file_iframe_sandbox_d_if9.html';
 }
@@ -220,18 +220,18 @@ function modify_if_9() {
     return;
   }
 
   var if_9 = document.getElementById('if_9');
   window.modified_if_9 = true;
 
   if_9.sandbox = 'allow-same-origin';
 
+  testAttempted();
   sendMouseEvent({type:'click'}, 'a_button2');
-  testAttempted();
 }
 
 var firstPrincipal = "";
 var secondPrincipal;
 
 function doIf10TestPart1() {
   if (firstPrincipal != "")
     return;