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

Unified Diff: LayoutTests/fast/dom/MicroData/nameditem-must-return-correct-item-properties.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/nameditem-must-return-correct-item-properties.html
diff --git a/LayoutTests/fast/dom/MicroData/nameditem-must-return-correct-item-properties.html b/LayoutTests/fast/dom/MicroData/nameditem-must-return-correct-item-properties.html
deleted file mode 100644
index 216ee54326a6fb77f9bc254bf83a30427110f237..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/nameditem-must-return-correct-item-properties.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../js/resources/js-test-pre.js"></script>
-<script src="resources/microdata-common.js"></script>
-</head>
-<body>
-<p>This test ensures that namedItem must return the correct item properties.</p>
-<div id="console"></div>
-<script>
-var element = createElement('div', {}, '<div itemprop="foo" id="id1"></div><div itemscope itemref="id2 id1"><div itemprop="foo bar"></div></div><div itemprop="baz" id="id2"><div itemprop="qux">');
-var item = element.childNodes[1];
-document.body.appendChild(element);
-
-debug("<br>Test properties.namedItem(name).");
-shouldBe("item.properties.namedItem('foo').length", '2');
-shouldBe("item.properties.namedItem('bar').length", '1');
-shouldBe("item.properties.namedItem('baz').length", '1');
-shouldBe("item.properties.namedItem('qux').length", '1');
-
-shouldBe("item.properties.namedItem('foo')[0]", 'element.firstChild');
-shouldBe("item.properties.namedItem('foo')[1]", 'item.firstChild');
-shouldBe("item.properties.namedItem('bar')[0]", 'item.firstChild');
-shouldBe("item.properties.namedItem('baz')[0]", 'element.lastChild');
-shouldBe("item.properties.namedItem('qux')[0]", 'element.lastChild.firstChild');
-
-debug("<br>Test properties[name].");
-shouldBe("item.properties['foo'].length", '2');
-shouldBe("item.properties['bar'].length", '1');
-shouldBe("item.properties['baz'].length", '1');
-shouldBe("item.properties['qux'].length", '1');
-
-shouldBe("item.properties['foo'][0]", 'element.firstChild');
-shouldBe("item.properties['foo'][1]", 'item.firstChild');
-shouldBe("item.properties['bar'][0]", 'item.firstChild');
-shouldBe("item.properties['baz'][0]", 'element.lastChild');
-shouldBe("item.properties['qux'][0]", 'element.lastChild.firstChild');
-
-debug("<br>Test properties[index].");
-shouldBe("item.properties[0]", 'element.firstChild');
-shouldBe("item.properties[1]", 'item.firstChild');
-shouldBe("item.properties[2]", 'element.lastChild');
-shouldBe("item.properties[3]", 'element.lastChild.firstChild')
-
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698