Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2011-04-10 Daniel Bates <dbates@rim.com>
Reviewed by Eric Seidel. Add layout test to ensure that window.name returns {"_blank", "_parent", "_self", "_top"} for a frame of the same name https://bugs.webkit.org/show_bug.cgi?id=58189 Extracted common code from files LayoutTests/fast/frames/resources/frame-element-name-{left, right}.html into LayoutTests/fast/frames/resources/frame-element-name.html so that we can use this logic to test frames with arbitrary names. * fast/frames/frame-element-name-expected.txt: * fast/frames/frame-element-name.html: Modified to use resources/frame-element-name.html; Added test cases for "_blank", "_parent", "_self", and "_top". * fast/frames/resources/frame-element-name-left.html: Removed; Instead, pass expectedName to resources/frame-element-name.html * fast/frames/resources/frame-element-name-right.html: Ditto. * fast/frames/resources/frame-element-name.html: Added. Canonical link: https://commits.webkit.org/73183@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
c25fc8c
commit e6e5eee2fa63adabd5857a454797da9fd82e9a6c
Showing
6 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,12 @@ | ||
<head> | ||
<link rel="stylesheet" href="../../js/resources/js-test-style.css"> | ||
<script src="../../js/resources/js-test-pre.js"></script> | ||
</head> | ||
<body> | ||
<div id="console"></div> | ||
<script> | ||
var expectedName = window.location.search.substr("?expectedName=".length); | ||
shouldBeEqualToString("escape(window.frameElement.name)", expectedName); | ||
shouldBeEqualToString("escape(window.name)", expectedName); | ||
</script> | ||
</body> |