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 172944 571356679b106c24370605bfcd47aeb82600430e
parent 172943 18a5dba931cac89d0ffba86ce79e2a590b35d698
child 172945 798346050542c3a44758ad6487936d4c0ffa083e
push id26384
push userryanvm@gmail.com
push dateTue, 11 Mar 2014 19:19:48 +0000
treeherdermozilla-central@9cdaf3f7c601 [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>