mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Issue #1257 - Part 3: Remove/update tests.
This removes a ton of tests that are no longer relevant with (un)watch removed (e.g. testing stability/bugs in the watchpoint system itself which has never been the most stable), and updates others that would previously rely on watch/unwatch, so that they don't unexpectedly fail.
This commit is contained in:
parent
ca9e376e55
commit
3d8d9f95df
141 changed files with 34 additions and 2940 deletions
|
|
@ -1,14 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Iframe test for bug 38959</title>
|
||||
</head>
|
||||
<body">
|
||||
<script>
|
||||
|
||||
x = false;
|
||||
window.opener.postMessage(1, "http://mochi.test:8888");
|
||||
window.close();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Iframe test for bug 38959</title>
|
||||
</head>
|
||||
<body">
|
||||
<script>
|
||||
|
||||
x = true;
|
||||
window.opener.postMessage(2, "http://mochi.test:8888");
|
||||
window.close();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -23,8 +23,6 @@ support-files =
|
|||
grandchild_bug260264.html
|
||||
iframe_bug304459-1.html
|
||||
iframe_bug304459-2.html
|
||||
iframe_bug38959-1.html
|
||||
iframe_bug38959-2.html
|
||||
iframe_bug430276-2.html
|
||||
iframe_bug430276.html
|
||||
iframe_bug440572.html
|
||||
|
|
@ -64,7 +62,6 @@ skip-if = toolkit == 'android' #TIMED_OUT
|
|||
[test_bug377539.html]
|
||||
[test_bug384122.html]
|
||||
[test_bug389366.html]
|
||||
[test_bug38959.html]
|
||||
[test_bug393974.html]
|
||||
[test_bug394769.html]
|
||||
[test_bug396843.html]
|
||||
|
|
|
|||
|
|
@ -1,57 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=38959
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 38959</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=38959">Mozilla Bug 38959</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
<iframe id="frame"></iframe>
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 38959 **/
|
||||
|
||||
var newValue;
|
||||
|
||||
function watcher(id, ol, ne)
|
||||
{
|
||||
newValue = ne;
|
||||
return ne;
|
||||
}
|
||||
|
||||
function openWindow(url, crossOrigin)
|
||||
{
|
||||
newValue = true;
|
||||
var w = window.open(url);
|
||||
w.watch("x", watcher);
|
||||
}
|
||||
|
||||
function receiveMessage(evt)
|
||||
{
|
||||
ok(newValue, "Watchpoints only allowed same-origin.");
|
||||
if (evt.data == 1) {
|
||||
openWindow("/tests/dom/tests/mochitest/bugs/iframe_bug38959-2.html");
|
||||
}
|
||||
else {
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
window.addEventListener("message", receiveMessage, false);
|
||||
|
||||
openWindow("http://example.org/tests/dom/tests/mochitest/bugs/iframe_bug38959-1.html");
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue