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

Unified Diff: LayoutTests/fast/text/font-variant-width.html

Issue 263363005: Initial patch for FontVariant, variant like HalfWidth should take Complex Path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@emoji_android
Patch Set: Updating test case Created 6 years, 7 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/text/font-variant-width.html
diff --git a/LayoutTests/fast/text/font-variant-width.html b/LayoutTests/fast/text/font-variant-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..c3f71c01adf09707e562d7924b67364837692e10
--- /dev/null
+++ b/LayoutTests/fast/text/font-variant-width.html
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML>
Inactive 2014/05/22 13:59:51 lowercase "html"
h.joshi 2014/05/27 06:25:57 Will make changes.
+<html>
+ <head>
+ <style type="text/css">
Inactive 2014/05/22 13:59:51 Why this style tag?
h.joshi 2014/05/27 06:25:57 Will remove this
+ </style>
+ <style>
+@font-face {
+ font-family: CSSHWOrientationTest;
+ src: url(../../third_party/CSSOrientationTest/CSSHWOrientationTest.ttf) format("truetype");
+}
+
+html {
+ -webkit-writing-mode: vertical-rl;
+ text-rendering: geometricPrecision;
+}
+
+p {
+ font-family: "CSSHWOrientationTest";
+ font-size: 24px;
+ width: 24px;
+ height: 24px;
+ margin: 0;
+ padding: 0;
+}
+
+.combine {
+ -webkit-text-combine: horizontal;
+ font-size: 24px;
+ line-height: 100%;
+ margin: 0;
+ padding: 0px;
+}
+
+
+</style>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+
+ <script type="text/javascript">
+ setup({ explicit_done: true });
+ function load() {
+ var spanElement = document.getElementById("variantCombine");
+ var propertyHeight = document.querySelector('.combine').clientHeight;
+
+ test(function() {
+ assert_true(( propertyHeight == 24), "Numbers laid out in one line.");
Inactive 2014/05/22 13:59:51 assert_equals(propertyHeight, 24, "Numbers are lai
h.joshi 2014/05/27 06:25:57 Okey, will make suggested changes.
+ }, "Numbers exected to be laid out in one line");
Inactive 2014/05/22 13:59:51 s/exected/expected
h.joshi 2014/05/27 06:25:57 Okey, will make suggested changes.
+ }
+ </script>
+</head>
Inactive 2014/05/22 13:59:51 bad indentation
h.joshi 2014/05/27 06:25:57 Some issue with my editor, will fix indentation.
+
+<body onload="load(); done();">
Inactive 2014/05/22 13:59:51 bad indentation
h.joshi 2014/05/27 06:25:57 Some issue with my editor, will fix indentation.
+ <p id="variantCombine" class="combine">90</p>
+ <div id="log"></div>
Inactive 2014/05/22 13:59:51 bad identation
h.joshi 2014/05/27 06:25:57 Some issue with my editor, will fix indentation.
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698