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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/collections/domstringmap-supported-property-names.html

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (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/dom/collections/domstringmap-supported-property-names.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/collections/domstringmap-supported-property-names.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/collections/domstringmap-supported-property-names.html
deleted file mode 100644
index 6e7e6ddb35db9665ad1e7b4871faf39112263527..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/collections/domstringmap-supported-property-names.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE HTML>
-<meta charset=utf-8>
-<title>DOMStringMap Test: Supported property names</title>
-<script src="../../../../resources/testharness.js"></script>
-<script src="../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-
-<div id="edge1" data-="012">Simple</div>
-
-<div id="edge2" data-id-="012">Simple</div>
-
-<div id="user" data-id="1234567890" data-user="johndoe" data-date-of-birth>
- John Doe
-</div>
-
-<div id="user2" data-unique-id="1234567890"> Jane Doe </div>
-
-<div id="user3" data-unique-id="4324324241"> Jim Doe </div>
-
-<script>
-
-test(function() {
- var element = document.querySelector('#edge1');
- assert_array_equals(Object.getOwnPropertyNames(element.dataset),
- [""]);
-}, "Object.getOwnPropertyNames on DOMStringMap, empty data attribute");
-
-test(function() {
- var element = document.querySelector('#edge2');
- assert_array_equals(Object.getOwnPropertyNames(element.dataset),
- ["id-"]);
-}, "Object.getOwnPropertyNames on DOMStringMap, data attribute trailing hyphen");
-
-test(function() {
- var element = document.querySelector('#user');
- assert_array_equals(Object.getOwnPropertyNames(element.dataset),
- ['id', 'user', 'dateOfBirth']);
-}, "Object.getOwnPropertyNames on DOMStringMap, multiple data attributes");
-
-test(function() {
- var element = document.querySelector('#user2');
- element.dataset.middleName = "mark";
- assert_array_equals(Object.getOwnPropertyNames(element.dataset),
- ['uniqueId', 'middleName']);
-}, "Object.getOwnPropertyNames on DOMStringMap, attribute set on dataset in JS");
-
-test(function() {
- var element = document.querySelector('#user3');
- element.setAttribute("data-age", 30);
- assert_array_equals(Object.getOwnPropertyNames(element.dataset),
- ['uniqueId', 'age']);
-}, "Object.getOwnPropertyNames on DOMStringMap, attribute set on element in JS");
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698