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

Unified Diff: LayoutTests/fast/dom/MicroData/item-not-attached-to-domtree.html

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 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: LayoutTests/fast/dom/MicroData/item-not-attached-to-domtree.html
diff --git a/LayoutTests/fast/dom/MicroData/item-not-attached-to-domtree.html b/LayoutTests/fast/dom/MicroData/item-not-attached-to-domtree.html
deleted file mode 100644
index 0d8818b4db86bf5e6035fe992fd8c801647dadff..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/item-not-attached-to-domtree.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../js/resources/js-test-pre.js"></script>
-<script src="resources/microdata-common.js"></script>
-</head>
-<body>
-<script>
-description("Test to ensure that HTMLPropertiesCollection contains all item properties when item is not attached to the DOM tree.");
-var parent = createElement('div', {}, '<div itemprop="foo" id="id1"></div><div itemscope itemref="id1 id2"><div itemprop="bar"></div></div><div itemprop="foo" id="id2"><div itemprop="baz"></div></div>');
-var item = parent.childNodes[1];
-
-function executeTest() {
- shouldBe("item.properties.length", "4");
- shouldBe("item.properties.item(0)", "parent.firstChild");
- shouldBe("item.properties[0]", "parent.firstChild");
- shouldBe("item.properties.item(1)", "item.firstChild");
- shouldBe("item.properties[1]", "item.firstChild");
- shouldBe("item.properties.item(2)", "parent.childNodes[2]");
- shouldBe("item.properties[2]", "parent.childNodes[2]");
- shouldBe("item.properties.item(3)", "parent.childNodes[2].firstChild");
- shouldBe("item.properties[3]", "parent.childNodes[2].firstChild");
- shouldBe("item.properties.names.length", "3");
- shouldBe("item.properties.names.item(0)", "'foo'");
- shouldBe("item.properties.names[0]", "'foo'");
- shouldBe("item.properties.names.item(1)", "'bar'");
- shouldBe("item.properties.names[1]", "'bar'");
- shouldBe("item.properties.names.item(2)", "'baz'");
- shouldBe("item.properties.names[2]", "'baz'");
- shouldBe("item.properties.namedItem('foo').length", "2");
- shouldBe("item.properties.namedItem('foo').item(0)", "parent.firstChild");
- shouldBe("item.properties.namedItem('foo')[0]", "parent.firstChild");
- shouldBe("item.properties.namedItem('foo').item(1)", "parent.childNodes[2]");
- shouldBe("item.properties.namedItem('foo')[1]", "parent.childNodes[2]");
- shouldBe("item.properties.namedItem('bar').length", "1");
- shouldBe("item.properties.namedItem('bar').item(0)", "item.firstChild");
- shouldBe("item.properties.namedItem('bar')[0]", "item.firstChild");
- shouldBe("item.properties.namedItem('baz').length", "1");
- shouldBe("item.properties.namedItem('baz').item(0)", "parent.childNodes[2].firstChild");
- shouldBe("item.properties.namedItem('baz')[0]", "parent.childNodes[2].firstChild");
-}
-
-debug("Item not attached to the dom tree");
-executeTest();
-
-document.body.appendChild(parent);
-debug("");
-debug("Item added to the dom tree");
-executeTest();
-
-document.body.removeChild(parent);
-debug("");
-debug("Item detached from the dom tree");
-executeTest();
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698