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/wpt/html/dom/elements-microdata.js

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js
deleted file mode 100644
index 1680ab79e20ec264d2f11ff4b8cb7b6fa0c03d80..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements-microdata.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// Up-to-date as of 2013-04-19.
-// Things defined in the W3C's microdata draft, not the main HTML5 draft.
-// Note: must be included last so that it hits all elements.
-
-for (var element in elements) {
- elements[element].itemScope = "boolean";
- elements[element].itemType = "settable tokenlist";
- elements[element].itemId = "url";
- elements[element].itemRef = "settable tokenlist";
- elements[element].itemProp = "settable tokenlist";
-}
-extraTests.push(function() {
- // itemValue only reflects in certain circumstances. The syntax for our big
- // array thing above doesn't currently support one IDL attribute that reflects
- // different content attributes, so just do this explicitly until that's fixed.
- var reflectItemValue = function(data, localName, attribute) {
- var element = document.createElement(localName);
- element.setAttribute("itemprop", "");
- ReflectionTests.reflects(data, "itemValue", element, attribute);
- }
- reflectItemValue("string", "meta", "content");
- reflectItemValue("url", "audio", "src");
- reflectItemValue("url", "embed", "src");
- reflectItemValue("url", "iframe", "src");
- reflectItemValue("url", "img", "src");
- reflectItemValue("url", "source", "src");
- reflectItemValue("url", "track", "src");
- reflectItemValue("url", "video", "src");
- reflectItemValue("url", "a", "href");
- reflectItemValue("url", "area", "href");
- reflectItemValue("url", "link", "href");
- reflectItemValue("url", "object", "data");
- reflectItemValue("string", "data", "value");
- //TODO: time is more complex
-});

Powered by Google App Engine
This is Rietveld 408576698