Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Wed, 17 Jul 2013 20:26:23 +0900
changeset 146400 e12c6f7d66763f5479c68833b62fb59309f43c79
parent 146399 d671f193a5da795f0ce9c170d20f38300c8aa43b
child 146401 bf423f63b3a1f714d9bac8871504abc5b38e2bfc
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs885107
milestone25.0a1
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
dom/bindings/test/test_bug773326.html
dom/encoding/test/test_TextEncoder.html
--- a/dom/bindings/test/test_bug773326.html
+++ b/dom/bindings/test/test_bug773326.html
@@ -1,16 +1,11 @@
 <!doctype html>
 <meta charset=utf-8>
 <title>Test for Bug 773326</title>
 <script src=/resources/testharness.js></script>
 <script src=/resources/testharnessreport.js></script>
 <div id=log></div>
 <script>
-if (navigator.platform.startsWith("Linux")) {
-  SimpleTest.expectAssertions(0, 2);
-} else {
-  SimpleTest.expectAssertions(2);
-}
 test(function() {
   new Worker("data:text/javascript,new XMLHttpRequest(42)");
 }, "Should not crash")
 </script>
--- a/dom/encoding/test/test_TextEncoder.html
+++ b/dom/encoding/test/test_TextEncoder.html
@@ -7,22 +7,16 @@
   <script type="text/javascript" src="/resources/testharnessreport.js"></script>
   <script type="text/javascript" src="test_TextEncoder.js"></script>
   <script type="text/javascript" src="worker_helper.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script>
 
-if (navigator.platform.startsWith("Win")) {
-  SimpleTest.expectAssertions(0, 2);
-} else {
-  SimpleTest.expectAssertions(2);
-}
-
 setup({explicit_done: true});
 runTest();
 
 function runTest()
 {
   runTextEncoderTests();
 }