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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/window_length.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/window_length.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/window_length.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/window_length.html
deleted file mode 100644
index 9bcc0bb14b290bd1f64c9c9d8c040d7ac013a894..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/window_length.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!doctype html>
-<title>window.length</title>
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id=log></div>
-<script>
-var iframe;
-var subframe;
-var other_window;
-test(function() {assert_equals(window.length, 0)}, "No child browsing contexts");
-test(function() {
- iframe = document.createElement("iframe");
- assert_equals(window.length, 0)
-}, "iframe not inserted into the document");
-
-test(function() {
- document.body.appendChild(iframe);
- assert_equals(window.length, 1)
-}, "One iframe inserted into the document");
-
-test(function() {
- subframe = document.createElement("iframe");
- iframe.contentDocument.body.appendChild(subframe);
- assert_equals(window.length, 1);
-}, "Child browsing context has a child browsing context");
-
-test(function() {
- try {
- assert_equals(iframe.contentWindow.length, 1);
- } finally {
- subframe.parentNode.removeChild(subframe);
- }
-}, "window.length in child frame");
-
-test(function() {
- iframe.parentNode.removeChild(iframe);
- other_window = window.open();
- assert_equals(window.length, 0);
- assert_equals(other_window.length, 0);
-}, "Opened window")
-
-test(function() {
- other_window.document.body.appendChild(iframe);
- try {
- assert_equals(other_window.length, 1);
- } finally {
- other_window.close();
- }
-}, "Iframe in opened window")
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698