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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements-sections.js

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/dom/elements-sections.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements-sections.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements-sections.js
deleted file mode 100644
index a22aed9f696580aa30837238c0fdaf4559649ca5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements-sections.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Up-to-date as of 2013-04-12.
-var sectionElements = {
- body: {
- // Obsolete
- text: {type: "string", treatNullAsEmptyString: true},
- link: {type: "string", treatNullAsEmptyString: true},
- vLink: {type: "string", treatNullAsEmptyString: true},
- aLink: {type: "string", treatNullAsEmptyString: true},
- bgColor: {type: "string", treatNullAsEmptyString: true},
- background: "string",
- },
- article: {},
- section: {},
- nav: {},
- aside: {},
- h1: {
- // Obsolete
- align: "string",
- },
- h2: {
- // Obsolete
- align: "string",
- },
- h3: {
- // Obsolete
- align: "string",
- },
- h4: {
- // Obsolete
- align: "string",
- },
- h5: {
- // Obsolete
- align: "string",
- },
- h6: {
- // Obsolete
- align: "string",
- },
- hgroup: {},
- header: {},
- footer: {},
- address: {},
-};
-
-mergeElements(sectionElements);
-
-extraTests.push(function() {
- ReflectionTests.reflects({type: "enum", keywords: ["ltr", "rtl", "auto"]}, "dir", document, "dir", document.documentElement);
- // TODO: these behave differently if the body element is a frameset. Also
- // should probably test with multiple bodies.
- ReflectionTests.reflects({type: "string", treatNullAsEmptyString: true}, "fgColor", document, "text", document.body);
- ReflectionTests.reflects({type: "string", treatNullAsEmptyString: true}, "linkColor", document, "link", document.body);
- ReflectionTests.reflects({type: "string", treatNullAsEmptyString: true}, "vlinkColor", document, "vlink", document.body);
- ReflectionTests.reflects({type: "string", treatNullAsEmptyString: true}, "alinkColor", document, "alink", document.body);
- ReflectionTests.reflects({type: "string", treatNullAsEmptyString: true}, "bgColor", document, "bgcolor", document.body);
- // Don't mess up the colors :)
- document.documentElement.removeAttribute("dir");
- var attrs = ["text", "bgcolor", "link", "alink", "vlink"];
- for (var i = 0; i < attrs.length; i++) {
- document.body.removeAttribute(attrs[i]);
- }
-});

Powered by Google App Engine
This is Rietveld 408576698