mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
f684f5c97e
--HG-- rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html extra : rebase_source : c2d23e5c973c117ab3fb66b2a98a451acfabc7e5
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function go() {
|
|
is(SpecialPowers.wrap(window).location.toString(), location.toString(), "sanity");
|
|
ok("returnValue" in window && "dialogArguments" in window, "We are modal");
|
|
var iwin = document.getElementById('ifr').contentWindow;
|
|
is(SpecialPowers.Cu.getClassName(iwin, /* aUnwrap = */ true), "Window", "Descendant frames should not be modal");
|
|
|
|
if (location.origin != "http://mochi.test:8888") {
|
|
is(window.dialogArguments, undefined,
|
|
"dialogArguments should be undefined cross-origin: " + location.origin);
|
|
}
|
|
|
|
window.returnValue = "rv: " + window.dialogArguments;
|
|
|
|
// Allow for testing navigations in series.
|
|
if (location.search == "") {
|
|
window.close();
|
|
} else {
|
|
var origins = location.search.split('?')[1].split(',');
|
|
var newsearch = '?' + origins.splice(1).join(',');
|
|
var newurl = location.toString().replace(location.origin, origins[0])
|
|
.replace(location.search, newsearch);
|
|
location = newurl;
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="opener.postMessage('dosetup', '*');">
|
|
<iframe id="ifr"></iframe>
|
|
</body>
|
|
</html>
|