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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-strict.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/window-indexed-properties-strict.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-strict.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-strict.html
deleted file mode 100644
index b49f49c1d6c82a430c6a8a09e7b1ccaa8d5c6377..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-strict.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>Indexed properties of the window object (strict mode)</title>
-<link rel="author" title="Ms2ger" href="ms2ger@gmail.com">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#window">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window-item">
-<link rel="help" href="https://heycam.github.io/webidl/#getownproperty">
-<link rel="help" href="https://heycam.github.io/webidl/#defineownproperty">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<div id=log></div>
-<iframe></iframe>
-<script>
-test(function() {
- "use strict";
- assert_false("-1" in window, "-1 not in window");
- assert_equals(window[-1], undefined);
- window[-1] = "foo";
- assert_equals(window[-1], "foo");
-});
-test(function() {
- "use strict";
- assert_throws(new TypeError(), function() {
- window[0] = "foo";
- });
- assert_equals(window[0],
- document.getElementsByTagName("iframe")[0].contentWindow);
-});
-test(function() {
- "use strict";
- assert_throws(new TypeError(), function() {
- window[1] = "foo";
- });
- assert_equals(window[1], undefined);
-});
-test(function() {
- "use strict";
- var proto = Window.prototype;
- [-1, 0, 1].forEach(function(idx) {
- assert_false(idx in proto, idx + " in proto");
- });
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698