Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: LayoutTests/imported/web-platform-tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html

Issue 1160513003: W3C Test: Import web-platform-tests/html/browsers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase, bug links Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/imported/web-platform-tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html
diff --git a/LayoutTests/imported/web-platform-tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html b/LayoutTests/imported/web-platform-tests/html/browsers/windows/browsing-context-names/browsing-context-default-name.html
new file mode 100644
index 0000000000000000000000000000000000000000..400ce9d52a609e62d0cef8594b52bbaa30ac8018
--- /dev/null
+++ b/LayoutTests/imported/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>

Powered by Google App Engine
This is Rietveld 408576698