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

Unified Diff: LayoutTests/fast/dom/MicroData/propertynodelist-add-remove-itemref-tokens.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/propertynodelist-add-remove-itemref-tokens.html
diff --git a/LayoutTests/fast/dom/MicroData/propertynodelist-add-remove-itemref-tokens.html b/LayoutTests/fast/dom/MicroData/propertynodelist-add-remove-itemref-tokens.html
deleted file mode 100644
index 3b2075b05c5259a19fe9f8e3b8d380c52287e791..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/propertynodelist-add-remove-itemref-tokens.html
+++ /dev/null
@@ -1,39 +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 adding or removing itemref tokens must update its PropertyNodeList.");
-var parent = createElement('div', {}, '<div id="id1" itemprop="foo"></div><div itemscope></div>');
-var testElement = parent.childNodes[1];
-var PNL = testElement.properties.namedItem('foo');
-
-shouldBe("PNL.length", "0");
-testElement.itemRef.add('id1');
-shouldBe("PNL.length", "1");
-shouldBe("PNL[0]", "parent.firstChild");
-testElement.itemRef.remove('id1');
-shouldBe("PNL.length", "0");
-shouldBeTrue("!PNL[0]");
-
-document.body.appendChild(parent);
-var length0 = PNL.length;
-testElement.itemRef.toggle('id1');
-var length1 = PNL.length;
-var foo0 = PNL[0];
-testElement.removeAttribute('itemref');
-var length2 = PNL.length;
-var foo1 = PNL[0];
-document.body.removeChild(parent);
-shouldBe("length0", "0");
-shouldBe("length1", "1");
-shouldBe("foo0", "parent.firstChild");
-shouldBe("length2", "0");
-shouldBeTrue("!foo1");
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698