Bug 1429323 - remove calls to SimpleTest.expectAssertions() from media mochitests. r=bechen
authorJW Wang <jwwang@mozilla.com>
Wed, 10 Jan 2018 14:50:53 +0800
changeset 452836 d14d36fc5161df0c1b66ce448d9a4901cb947260
parent 452835 d24dd3821124a66cc06fd069534f237372d620ba
child 452837 b273f48a1ab59695ab3651cd72550fc9bc9e0b64
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbechen
bugs1429323
milestone59.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 1429323 - remove calls to SimpleTest.expectAssertions() from media mochitests. r=bechen MozReview-Commit-ID: GapLJjIGjmK
dom/media/test/test_bug686942.html
dom/media/test/test_seek_out_of_range.html
--- a/dom/media/test/test_bug686942.html
+++ b/dom/media/test/test_bug686942.html
@@ -10,20 +10,16 @@ https://bugzilla.mozilla.org/show_bug.cg
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
   <script type="text/javascript" src="manifest.js"></script>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=686942">Mozilla Bug 686942</a>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
-if (navigator.platform.startsWith("Win")) {
-  SimpleTest.expectAssertions(0, 2);
-}
-
 var manager = new MediaTestManager;
 
 function onloaded(event) {
   var v = event.target;
   v.removeEventListener("loadedmetadata", onloaded);
   v.currentTime = v.duration;
   return;
 }
--- a/dom/media/test/test_seek_out_of_range.html
+++ b/dom/media/test/test_seek_out_of_range.html
@@ -5,20 +5,16 @@
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
   <script type="text/javascript" src="manifest.js"></script>
 </head>
 <body>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
-if (navigator.platform.startsWith("Win")) {
-  SimpleTest.expectAssertions(0, 10);
-}
-
 var manager = new MediaTestManager;
 
 // Test if the ended event works correctly.
 
 async function initTest(test, token) {
   var type = getMajorMimeType(test.type);
   var v = document.createElement(type);
   v.preload = "auto";