Bug 404077: Adjust annotations of expected assertions.

This commit is contained in:
L. David Baron 2013-02-27 23:41:31 -08:00
parent 94bba45e4d
commit 6e252ebd21
5 changed files with 9 additions and 8 deletions

View File

@ -13,7 +13,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=413310
<p id="display">
<script class="testbody" type="text/javascript">
if (navigator.platform.startsWith("Win")) {
if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 2);
} else {
SimpleTest.expectAssertions(0, 1);
}

View File

@ -27,9 +27,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=469774
<script class="testbody" type="application/javascript;version=1.7"><![CDATA[
if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 3);
}
SimpleTest.expectAssertions(0, 3);
/** Test for Bug 469774 **/

View File

@ -17,9 +17,8 @@
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
if (!navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(0, 7);
}
SimpleTest.expectAssertions(0, 7);
var gNotificationBox;

View File

@ -23,6 +23,8 @@
SimpleTest.expectAssertions(0, 5);
} else if (navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(0, 3);
} else if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 1);
}
var toolbar = $("tb1");

View File

@ -10,7 +10,7 @@
src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
<script>
if (navigator.platform.startsWith("Mac")) {
if (!navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(0, 2);
}
SimpleTest.waitForExplicitFinish();