зеркало из https://github.com/mozilla/gecko-dev.git
Bug 854082 - Attribute bug 621618 assertions to the proper test. r=gfritzsche
This commit is contained in:
Родитель
108e062a3e
Коммит
9f2d3e54e2
|
@ -28,6 +28,9 @@ function f() {
|
|||
<script type="application/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
// When the document is torn down or <svg> is removed, we hit bug 621618
|
||||
SimpleTest.expectAssertions(1);
|
||||
|
||||
var frameLoadCount = 0;
|
||||
function frameLoaded() {
|
||||
frameLoadCount++;
|
||||
|
@ -37,7 +40,11 @@ function frameLoaded() {
|
|||
} else if (frameLoadCount == 2) {
|
||||
isnot(SpecialPowers.wrap(window.frame1).location.href.indexOf('chrome://'),
|
||||
0, 'plugin shouldnt be able to cause navigation to chrome URLs');
|
||||
SimpleTest.finish();
|
||||
|
||||
// Make sure we trigger bug 621618 before the test finishes so the assertion
|
||||
// is attributed to this test.
|
||||
document.body.removeChild(document.querySelector("svg"));
|
||||
SimpleTest.executeSoon(function() { SimpleTest.finish(); });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
<body onload="runTests()">
|
||||
<script class="testbody" type="application/javascript">
|
||||
SimpleTest.expectAssertions(1);
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var gOtherWindow;
|
||||
|
|
|
@ -7,9 +7,6 @@
|
|||
<body onload="runTests()">
|
||||
<embed id="plugin1" type="application/x-test" width="400" height="400"></embed>
|
||||
<script class="testbody" type="application/javascript">
|
||||
if (!navigator.platform.startsWith("Mac")) {
|
||||
SimpleTest.expectAssertions(1);
|
||||
}
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
function runTests() {
|
||||
var pluginElement = document.getElementById("plugin1");
|
||||
|
|
Загрузка…
Ссылка в новой задаче