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

Unified Diff: LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/getComputedStyle-text-justify-expected.txt

Issue 17155007: [CSS3] Parsing the property, text-justify. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parsingTextJustify
Patch Set: Patch for landing 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/fast/css3-text/css3-text-justify/getComputedStyle/getComputedStyle-text-justify-expected.txt
diff --git a/LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/getComputedStyle-text-justify-expected.txt b/LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/getComputedStyle-text-justify-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d3b33a28eef935c7c269e453352eadf7c33a6318
--- /dev/null
+++ b/LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/getComputedStyle-text-justify-expected.txt
@@ -0,0 +1,83 @@
+This test checks that text-justify parses properly the properties from CSS 3 Text.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Value 'none':
+PASS element.style.textJustify is 'none'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'none'
+PASS computedStyle.textJustify is 'none'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'none'
+
+Value 'inter-word':
+PASS element.style.textJustify is 'inter-word'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'inter-word'
+PASS computedStyle.textJustify is 'inter-word'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'inter-word'
+
+Value 'distribute':
+PASS element.style.textJustify is 'distribute'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'distribute'
+PASS computedStyle.textJustify is 'distribute'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
+
+Presetted value is none
+Invalid value test - 'green':
+PASS element.style.textJustify is 'none'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'none'
+PASS computedStyle.textJustify is 'none'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'none'
+
+Invalid value test - 'inline':
+PASS element.style.textJustify is 'none'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'none'
+PASS computedStyle.textJustify is 'none'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'none'
+
+Presetted value is distribute
+Invalid value test - 'solid':
+PASS element.style.textJustify is 'distribute'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'distribute'
+PASS computedStyle.textJustify is 'distribute'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
+
+Invalid value test - 'normal':
+PASS element.style.textJustify is 'distribute'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'distribute'
+PASS computedStyle.textJustify is 'distribute'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
+
+Computed value test - 'inherit':
+PASS element.style.textJustify is 'inherit'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'inherit'
+PASS computedStyle.textJustify is 'none'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'none'
+
+Computed value test - 'inherit':
+PASS element.style.textJustify is 'inherit'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'inherit'
+PASS computedStyle.textJustify is 'distribute'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
+
+Computed value test - 'initial':
+PASS element.style.textJustify is 'initial'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'initial'
+PASS computedStyle.textJustify is 'auto'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
+
+Value of ancestor is 'inter-word, while child is 'distribute':
+PASS element.style.textJustify is 'distribute'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'distribute'
+PASS computedStyle.textJustify is 'distribute'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
+
+Value of ancestor is 'none, while child is 'inter-word':
+PASS element.style.textJustify is 'inter-word'
+PASS element.style.getPropertyCSSValue('text-justify').cssText is 'inter-word'
+PASS computedStyle.textJustify is 'inter-word'
+PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'inter-word'
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698