diff options
Diffstat (limited to 'caps/tests/mochitest')
-rw-r--r-- | caps/tests/mochitest/browser_checkloaduri.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/caps/tests/mochitest/browser_checkloaduri.js b/caps/tests/mochitest/browser_checkloaduri.js index 11ff2d1a08..3b31164790 100644 --- a/caps/tests/mochitest/browser_checkloaduri.js +++ b/caps/tests/mochitest/browser_checkloaduri.js @@ -279,8 +279,9 @@ function testURL( } let inheritDisallowed = flags & ssm.DISALLOW_INHERIT_PRINCIPAL; let shouldThrow = inheritDisallowed ? !canLoadWithoutInherit : !canLoad; - ok( - threw == shouldThrow, + Assert.equal( + threw, + shouldThrow, "Should " + (shouldThrow ? "" : "not ") + "throw an error when loading " + |