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

Unified Diff: LayoutTests/fast/dom/title-directionality.html

Issue 23190034: Remove code related to title directionality, we never used it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/dom/title-directionality-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/title-directionality.html
diff --git a/LayoutTests/fast/dom/title-directionality.html b/LayoutTests/fast/dom/title-directionality.html
deleted file mode 100644
index b4698ad99e6719529b51604707e5aa10dac31c21..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/title-directionality.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>page title</title>
-</head>
-<body onload="runTest()">
-<iframe id="iframe"></iframe>
-<script>
-function runTest() {
- var iframe = document.getElementById('iframe');
-
- function assertDirection(label, expectedDirection, html)
- {
- var doc = iframe.contentDocument;
- doc.open();
- doc.write(html);
- doc.close();
-
- // We can't know the direction of the text in the title until the first
- // recalc style so trigger one here so that the titleTextDirection is
- // correct.
- doc.documentElement.offsetTop;
-
- var dir = window.testRunner ?
- testRunner.titleTextDirection
- : 'testRunner unavailable';
- var status = html + ' should have title direction "' + expectedDirection + '". ';
- if (dir == expectedDirection) {
- status += 'PASS';
- } else {
- status += 'FAIL (got: "' + dir + '")';
- }
- var div = document.createElement('div');
- div.textContent = status;
- document.body.appendChild(div);
- }
-
- if (window.testRunner)
- testRunner.dumpAsText();
-
- assertDirection('normal doc', 'ltr',
- '<html><title>foo</title></html>');
- assertDirection('title dir=rtl', 'rtl',
- '<html><title dir=rtl>foo</title></html>');
- assertDirection('html dir=rtl', 'rtl',
- '<html dir=rtl><title>foo</title></html>');
- assertDirection('html dir=rtl, title dir=ltr', 'ltr',
- '<html dir=rtl><title dir=ltr>foo</title></html>');
-}
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/dom/title-directionality-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698