Bug 981980 - test_clipboard_events_chrome.html should close its helper window before the test ends. r=enndeakin
authorCameron McCormack <cam@mcc.id.au>
Tue, 11 Mar 2014 21:22:58 +1100
changeset 190135 571356679b106c24370605bfcd47aeb82600430e
parent 190134 18a5dba931cac89d0ffba86ce79e2a590b35d698
child 190136 798346050542c3a44758ad6487936d4c0ffa083e
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenndeakin
bugs981980
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 981980 - test_clipboard_events_chrome.html should close its helper window before the test ends. r=enndeakin
dom/tests/mochitest/chrome/test_clipboard_events_chrome.html
--- a/dom/tests/mochitest/chrome/test_clipboard_events_chrome.html
+++ b/dom/tests/mochitest/chrome/test_clipboard_events_chrome.html
@@ -45,16 +45,17 @@ function doChecks(win)
 
     event_fired = false;
     textbox.setSelectionRange(1, 4);
     synthesizeKey("v", {accelKey: 1}, win);
     is(textbox.value, "STeText", "paste changed text when preference is disabled");
     ok(event_fired, "paste event fired when preference is disabled")
 
     SpecialPowers.clearUserPref("dom.event.clipboardevents.enabled");
+    win.close();
     SimpleTest.finish();
   }
 
   SimpleTest.waitForFocus(windowFocused, win);
 }
 
 </script>