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

Unified Diff: LayoutTests/editing/selection/find-yensign-and-backslash-with-japanese-fonts.html

Issue 27030014: Remove Backslash-as-JPY hack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TextCodec/Encoding added Created 7 years, 2 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/editing/selection/find-yensign-and-backslash-with-japanese-fonts.html
diff --git a/LayoutTests/editing/selection/find-yensign-and-backslash-with-japanese-fonts.html b/LayoutTests/editing/selection/find-yensign-and-backslash-with-japanese-fonts.html
deleted file mode 100644
index 58d4034a1fa4e2170c2faab256ac25f14f06c3d0..0000000000000000000000000000000000000000
--- a/LayoutTests/editing/selection/find-yensign-and-backslash-with-japanese-fonts.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-<meta charset="UTF-8">
-<script>
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function shouldBe(actual, expected, testName)
-{
- var result = testName + ": ";
- if (actual == expected)
- result += "PASS";
- else
- result += "FAIL";
-
- document.getElementById("results").innerHTML += result + "<br>";
-}
-
-function test()
-{
- var FONT_AND_EXPECTATIONS = [
- [ null, false, true ],
- [ "MS PGothic", true, false ],
- [ "MS Gothic", true, false ],
- [ "MS PMincho", true, false ],
- [ "MS Mincho", true, false ],
- [ "Meiryo", true, false ],
- [ "MS Pゴシック", true, false ],
- [ "MS ゴシック", true, false ],
- [ "MS P明朝", true, false ],
- [ "MS 明朝", true, false ],
- [ "メイリオ", true, false ],
- [ "Times", false, true ],
- [ "foobar", false, true ]
- ];
-
- var sandbox = document.getElementById("sandbox");
-
- for (var i = 0; FONT_AND_EXPECTATIONS[i]; i++) {
- var fontName = FONT_AND_EXPECTATIONS[i][0];
- var isSearchableByYen = FONT_AND_EXPECTATIONS[i][1];
- var isSearchableByBackslash = FONT_AND_EXPECTATIONS[i][2];
- var element = document.createElement("div");
- if (fontName)
- element.style.fontFamily = fontName;
- element.innerText = "\\";
-
- sandbox.appendChild(element);
-
- if (!fontName)
- fontName = "No specified font";
- shouldBe(document.execCommand("FindString", false, "¥"), isSearchableByYen, fontName + " + yen sign");
- shouldBe(document.execCommand("FindString", false, "\\"), isSearchableByBackslash, fontName + " + backslash");
-
- sandbox.removeChild(element);
- }
-}
-
-</script>
-</head>
-
-<body onload="test()">
-<div id="sandbox"></div>
-<div id="results"></div>
-</body>
-
-</html>
« no previous file with comments | « LayoutTests/editing/selection/find-yensign-and-backslash.html ('k') | LayoutTests/fast/dom/HTMLOptionElement/option-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698