diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html')
-rw-r--r-- | testing/web-platform/tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html b/testing/web-platform/tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html new file mode 100644 index 000000000..0bad8e606 --- /dev/null +++ b/testing/web-platform/tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>HTML Test: Browsing context - Default name</title> +<link rel="author" title="Intel" href="http://www.intel.com/"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> +<iframe src="message.html" style="display:none"></iframe> +<script> + +test(function () { + assert_equals(window.frames[0].name, "", "The browsing context should not have a default name."); +}, "A embedded browsing context has no default name"); + +test(function () { + var win = window.open("about:blank", "_blank"); + assert_equals(win.name, "", "The browsing context should not have a name."); + win.close(); +}, "A browsing context which is opened by window.open() method with '_blank' parameter has no default name"); + +//This test must be run when the current browsing context's name is not set +test(function () { + assert_equals(window.name, "", "The browsing context should not have a name."); +}, "A browsing context has no default name"); + +</script> |