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

Unified Diff: third_party/WebKit/LayoutTests/html/document-metadata/resources/head-check.js

Issue 2780363002: Rename subdirectory names in LayoutTests/html/. (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/LayoutTests/html/document-metadata/resources/head-check.js
diff --git a/third_party/WebKit/LayoutTests/html/document-metadata/resources/head-check.js b/third_party/WebKit/LayoutTests/html/document-metadata/resources/head-check.js
deleted file mode 100644
index cb4d34d3aace33bf8df674e264d727f7cf7d410b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/html/document-metadata/resources/head-check.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var maxTests = 4;
-var currentTest = 1;
-var iframe;
-
-if (window.testRunner) {
- window.testRunner.waitUntilDone();
-}
-
-function testAndLoadNext() {
- iframe = document.getElementById("iframe");
- if (iframe.src.substring(0, 5) == "data:") {
- iframe.src = "resources/head-check-" + currentTest + ".html";
- return;
- }
- debug("Testing: " + iframe.src.substring(iframe.src.lastIndexOf("/") + 1));
- shouldBe("iframe.contentWindow.document.getElementsByTagName('head').length", "1");
- shouldBe("iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase()", "'head'");
- debug("");
- if (currentTest < maxTests) {
- currentTest++;
- iframe.src = "data:text/html,";
- }
- else {
- iframe.style.display = "none";
- debug('<span class="pass">TEST COMPLETE</span>');
- if (window.testRunner) {
- window.testRunner.notifyDone();
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698