author | Blake Kaplan <mrbkap@gmail.com> |
Thu, 26 Feb 2015 14:23:45 -0800 | |
changeset 231101 | a4a1d5217e5b4b27a9b9284c558e2dbf161b4477 |
parent 231100 | 3065c00075695e1d9ecd9d1f1d6103b30a5e4f63 |
child 231102 | c6f3b60f6f8ab6a9c1d1918373968433d4e5e50b |
push id | 28344 |
push user | ryanvm@gmail.com |
push date | Fri, 27 Feb 2015 18:20:08 +0000 |
treeherder | mozilla-central@9dd9d1e5b43c [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jimm |
bugs | 1077002 |
milestone | 39.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
dom/tests/mochitest/general/mochitest.ini | file | annotate | diff | comparison | revisions | |
dom/tests/mochitest/general/test_bug1077002.html | file | annotate | diff | comparison | revisions |
--- a/dom/tests/mochitest/general/mochitest.ini +++ b/dom/tests/mochitest/general/mochitest.ini @@ -42,16 +42,18 @@ skip-if = ((buildapp == 'mulet' || build [test_bug504220.html] [test_bug628069_1.html] skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage [test_bug628069_2.html] [test_bug631440.html] skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage [test_bug653364.html] [test_bug861217.html] +[test_bug1077002.html] +run-if = e10s [test_clientRects.html] [test_clipboard_events.html] skip-if = e10s || buildapp == 'b2g' # b2g(clipboard undefined) b2g-debug(clipboard undefined) b2g-desktop(clipboard undefined) [test_consoleAPI.html] [test_DOMMatrix.html] [test_domWindowUtils.html] [test_domWindowUtils_scrollXY.html] [test_domWindowUtils_scrollbarSize.html]
new file mode 100644 --- /dev/null +++ b/dom/tests/mochitest/general/test_bug1077002.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1077002 +--> +<head> + <title>Test for Bug 1077002</title> + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <script type="application/javascript" src="/tests/SimpleTest/EventUtils.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=1077002">Mozilla Bug 1077002</a> +<p id="display"></p> +<div id="content"> + <iframe id="frame" style="height:100px; width:100px; border:0"></iframe> + <div id="status" style="display: none"></div> +</div> +<pre id="test"> +<script type="application/javascript;version=1.7"> + +/** Test for Bug 1077002 **/ + +try { + // NB: This test runs in e10s only. In e10s showModalDialog should only + // ever throw NS_ERROR_NOT_AVAILABLE. + window.showModalDialog("http://example.org"); +} catch (e) { + is(e.name, "NS_ERROR_NOT_AVAILABLE", "throw the correct error message"); +} + +</script> +</pre> +</body> +</html>