Bug 404077: Adjust annotations of expected assertions.

This commit is contained in:
L. David Baron 2013-02-27 13:20:26 -08:00
parent a2a46343bf
commit 42aceb59d8
7 changed files with 17 additions and 12 deletions

View File

@ -21,6 +21,9 @@
src="../events.js" />
<script type="application/javascript">
SimpleTest.expectAssertions(0, 1);
function getColorBtn(aBtnObj)
{
var colorpicker = aBtnObj.colorpicker;

View File

@ -16,9 +16,7 @@
src="../states.js"></script>
<script type="application/javascript">
if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 1);
}
SimpleTest.expectAssertions(0, 1);
function doTest()
{

View File

@ -10,6 +10,12 @@
<body>
<pre id="test">
<script type="application/javascript">
if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 1);
} else if (navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(0, 3);
}
SimpleTest.waitForExplicitFinish();
var root = getRootDirectory(window.location.href);

View File

@ -19,6 +19,10 @@
<!-- test code goes here -->
<script type="text/javascript"><![CDATA[
if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 5);
}
var toolbar = $("tb1");
ok(toolbar, "got the toolbar, triggering the xbl constructor");

View File

@ -21,9 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=624329
<![CDATA[
/** Test for Bug 624329 **/
if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 3);
}
SimpleTest.expectAssertions(0, 5);
SimpleTest.waitForExplicitFinish();

View File

@ -22,7 +22,7 @@ var gTestPhase = -1;
var gCp = null;
if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 4);
SimpleTest.expectAssertions(0, 7);
} else if (navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(0, 5);
}

View File

@ -18,11 +18,7 @@
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
if (navigator.platform.startsWith("Linux")) {
SimpleTest.expectAssertions(0, 3);
} else {
SimpleTest.expectAssertions(0, 2);
}
SimpleTest.expectAssertions(0, 5);
SimpleTest.waitForExplicitFinish();