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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>HTML Test: Browsing context - Default name</title>
4 <link rel="author" title="Intel" href="http://www.intel.com/">
5 <script src="../../../../../../resources/testharness.js"></script>
6 <script src="../../../../../../resources/testharnessreport.js"></script>
7 <div id="log"></div>
8 <iframe src="message.html" style="display:none"></iframe>
9 <script>
10
11 test(function () {
12 assert_equals(window.frames[0].name, "", "The browsing context should not have a default name.");
13 }, "A embedded browsing context has no default name");
14
15 test(function () {
16 var win = window.open("about:blank", "_blank");
17 assert_equals(win.name, "", "The browsing context should not have a name.");
18 win.close();
19 }, "A browsing context which is opened by window.open() method with '_blank' par ameter has no default name");
20
21 //This test must be run when the current browsing context's name is not set
22 test(function () {
23 assert_equals(window.name, "", "The browsing context should not have a name.") ;
24 }, "A browsing context has no default name");
25
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698