Bug 604129 - [SeaMonkey] mochitest-chrome: "TEST-UNEXPECTED-FAIL / test_crash_submit.xul / EventUtils.js, line 60: aTarget is null"; (Av1a) Skip this test on Seamonkey ftb.
authorSerge Gautherie <sgautherie.bz@free.fr>
Fri, 11 Feb 2011 17:26:07 +0100
changeset 62354 6d6899c557cf7ac2a985cb6f9a295906c932527d
parent 62353 447d780336cc31b944e9bdf3d6ae043316732586
child 62355 ae4835ed620101db48c46975423631a6f3dfcf8c
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
bugs604129
milestone2.0b12pre
Bug 604129 - [SeaMonkey] mochitest-chrome: "TEST-UNEXPECTED-FAIL / test_crash_submit.xul / EventUtils.js, line 60: aTarget is null"; (Av1a) Skip this test on Seamonkey ftb. r=joshmoz (a=test-only).
modules/plugin/test/mochitest/test_crash_submit.xul
--- a/modules/plugin/test/mochitest/test_crash_submit.xul
+++ b/modules/plugin/test/mochitest/test_crash_submit.xul
@@ -88,16 +88,22 @@ function onPluginCrashed(aEvent) {
 
   let pleaseLink = document.getAnonymousElementByAttribute(
                             aEvent.target, "class", "pleaseSubmitLink");
   // try to submit this report
   sendMouseEvent({type:'click'}, pleaseLink, window);
 }
 
 function runTests() {
+  if (navigator.userAgent.match(/ SeaMonkey\//)) {
+    todo(false, "Skipping this test on Seamonkey ftb. (Bug 604129)");
+    SimpleTest.finish();
+    return;
+  }
+
   if (!SimpleTest.testPluginIsOOP()) {
     ok(true, "Skipping this test when test plugin is not OOP.");
     SimpleTest.finish();
     return;
   }
   // the test harness will have set MOZ_CRASHREPORTER_NO_REPORT,
   // ensure that we can change the setting and have our minidumps
   // wind up in Crash Reports/pending