linux mochitest fix for bug 485270
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 15 Oct 2009 14:27:57 +0800
changeset 33878 82d36cd2bb128c8a094600dec56f36ab06804e29
parent 33877 50796c65175de2d1855b1afabec2e802d43e0cd2
child 33879 fa363abd896e25e18fec25140e4785613533d225
push id9740
push usersurkov.alexander@gmail.com
push dateThu, 15 Oct 2009 05:29:18 +0000
treeherdermozilla-central@82d36cd2bb12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs485270
milestone1.9.3a1pre
linux mochitest fix for bug 485270
accessible/tests/mochitest/test_elm_plugin.html
--- a/accessible/tests/mochitest/test_elm_plugin.html
+++ b/accessible/tests/mochitest/test_elm_plugin.html
@@ -16,16 +16,24 @@
           src="chrome://mochikit/content/a11y/accessible/role.js"></script>
   <script type="application/javascript"
           src="chrome://mochikit/content/a11y/accessible/states.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
+      if (!WIN) {
+        ok(true,
+           "Nothing to test because accessible plugins are supported on Windows only");
+
+        SimpleTest.finish();
+        return;
+      }
+
       testRole("plugin", ROLE_EMBEDDED_OBJECT);
       testStates("plugin", STATE_UNAVAILABLE);
 
       SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);