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

Unified Diff: LayoutTests/fast/dom/MicroData/propertynodelist-test-add-remove-element.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-test-add-remove-element.html
diff --git a/LayoutTests/fast/dom/MicroData/propertynodelist-test-add-remove-element.html b/LayoutTests/fast/dom/MicroData/propertynodelist-test-add-remove-element.html
deleted file mode 100644
index 51cf5ec5375c849ed95345028f91df914d78210d..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/propertynodelist-test-add-remove-element.html
+++ /dev/null
@@ -1,63 +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>Microdata properties collection must update on adding or removing property.</p>
-<div itemprop="foo" id="test">
-</div>
-<div itemscope id="microdata-item">
-<p itemprop="foo"></p>
-</div>
-<div id="console"></div>
-<script>
-var item = document.getElementById('microdata-item');
-var propertyNodeList = item.properties.namedItem('foo');
-var testElement = document.getElementById('test');
-
-shouldBeTrue("propertyNodeList.length == '1'");
-shouldBeTrue("propertyNodeList[0] == item.children[0]");
-
-debug('Add a property to the item.');
-item.appendChild(createElement('div', {itemprop: 'foo'}));
-shouldBeTrue("propertyNodeList.length == 2");
-shouldBeTrue("propertyNodeList[0] == item.children[0]");
-shouldBeTrue("propertyNodeList[1] == item.children[1]");
-
-debug('Remove itemprop attribute of the first child.');
-item.children[0].removeAttribute('itemprop');
-shouldBeTrue("propertyNodeList.length == 1");
-shouldBeTrue("propertyNodeList[0] == item.children[1]");
-
-debug('Add itemprop attribute to the first child.');
-item.children[0].setAttribute('itemprop', 'foo');
-shouldBeTrue("propertyNodeList.length == 2");
-shouldBeTrue("propertyNodeList[0] == item.children[0]");
-shouldBeTrue("propertyNodeList[1] == item.children[1]");
-
-debug('Add itemref attribute.');
-item.setAttribute('itemref', 'test');
-shouldBeTrue("propertyNodeList.length == 3");
-shouldBeTrue("propertyNodeList[0] == testElement");
-shouldBeTrue("propertyNodeList[1] == item.children[0]");
-shouldBeTrue("propertyNodeList[2] == item.children[1]");
-
-debug('Remove itemref attribute.');
-item.removeAttribute('itemref');
-shouldBeTrue("propertyNodeList.length == 2");
-shouldBeTrue("propertyNodeList[0] == item.children[0]");
-shouldBeTrue("propertyNodeList[1] == item.children[1]");
-
-debug('Add itemref attribute.');
-item.setAttribute('itemref', 'test');
-shouldBeTrue("propertyNodeList.length == 3");
-shouldBeTrue("propertyNodeList[0] == testElement");
-shouldBeTrue("propertyNodeList[1] == item.children[0]");
-shouldBeTrue("propertyNodeList[2] == item.children[1]");
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698