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

Unified Diff: LayoutTests/fast/dom/MicroData/resources/microdata-common.js

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/resources/microdata-common.js
diff --git a/LayoutTests/fast/dom/MicroData/resources/microdata-common.js b/LayoutTests/fast/dom/MicroData/resources/microdata-common.js
deleted file mode 100644
index 4e1763c061e3cdefadbd4c05df4cff37f1038a9f..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/resources/microdata-common.js
+++ /dev/null
@@ -1,43 +0,0 @@
-// this function creates element with specified property and contents.
-function createElement(type, props, contents) {
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var element = document.createElement(type);
-
- debug('Created element of type: ' + type);
- for (var i in props) {
- if (props.hasOwnProperty(i)) {
- debug('Set attribute: ' + i + ', value: ' + props[i]);
- element.setAttribute(i,props[i]);
- }
- }
- if (contents) {
- element.innerHTML = contents;
- }
- return element;
-}
-
-
-// runs a test and writes a log
-function runTest(collection, elements, title) {
- if (window.testRunner)
- testRunner.dumpAsText();
-
- pass = true;
-
- if (collection.length != elements.length) {
- pass = false
- debug('FAIL - expected ' + elements.length + ' elements but got ' + collection.length + " elements. ");
- }
- for(var i = 0, max = collection.length > elements.length ? elements.length : collection.length; i < max; i++) {
- if(collection[i] != elements[i]) {
- debug(title);
- pass = false
- debug('FAIL - expected element : ' + elements[i].tagName + " but got element :" + collection[i].tagName);
- debug('FAIL - expected element with id: ' + elements[i].id + " but got element with id:" + collection[i].id);
- }
- }
- if (pass)
- debug(title + ': PASS');
-}

Powered by Google App Engine
This is Rietveld 408576698