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

Unified Diff: LayoutTests/fast/alignment/parse-justify-items-expected.txt

Issue 333423005: [CSS Grid Layout] Implement 'justify-items' parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Suggested changes and additional test cases. Created 6 years, 6 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/alignment/parse-justify-items-expected.txt
diff --git a/LayoutTests/fast/alignment/parse-justify-items-expected.txt b/LayoutTests/fast/alignment/parse-justify-items-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ad350428eadfa96b9d6002421ffb248433988c82
--- /dev/null
+++ b/LayoutTests/fast/alignment/parse-justify-items-expected.txt
@@ -0,0 +1,68 @@
+Test that setting and getting justify-items works as expected
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test getting justify-items set through CSS
+PASS getComputedStyle(justifyItemsBaseline, '').getPropertyValue('justify-items') is 'baseline'
+PASS getComputedStyle(justifyItemsStretch, '').getPropertyValue('justify-items') is 'stretch'
+PASS getComputedStyle(justifyItemsStart, '').getPropertyValue('justify-items') is 'start'
+PASS getComputedStyle(justifyItemsEnd, '').getPropertyValue('justify-items') is 'end'
+PASS getComputedStyle(justifyItemsCenter, '').getPropertyValue('justify-items') is 'center'
+PASS getComputedStyle(justifyItemsItemsEnd, '').getPropertyValue('justify-items') is 'self-end'
+PASS getComputedStyle(justifyItemsItemsStart, '').getPropertyValue('justify-items') is 'self-start'
+PASS getComputedStyle(justifyItemsLeft, '').getPropertyValue('justify-items') is 'left'
+PASS getComputedStyle(justifyItemsRight, '').getPropertyValue('justify-items') is 'right'
+PASS getComputedStyle(justifyItemsEndTrue, '').getPropertyValue('justify-items') is 'end true'
+PASS getComputedStyle(justifyItemsCenterTrue, '').getPropertyValue('justify-items') is 'center true'
+PASS getComputedStyle(justifyItemsItemsEndSafe, '').getPropertyValue('justify-items') is 'self-end safe'
+PASS getComputedStyle(justifyItemsItemsStartSafe, '').getPropertyValue('justify-items') is 'self-start safe'
+PASS getComputedStyle(justifyItemsRightSafe, '').getPropertyValue('justify-items') is 'right safe'
+PASS getComputedStyle(justifyItemsLeftTrue, '').getPropertyValue('justify-items') is 'left true'
+PASS getComputedStyle(justifyItemsLegacyLeft, '').getPropertyValue('justify-items') is 'legacy left'
+PASS getComputedStyle(justifyItemsLegacyCenter, '').getPropertyValue('justify-items') is 'legacy center'
+PASS getComputedStyle(justifyItemsLegacyRight, '').getPropertyValue('justify-items') is 'legacy right'
+
+Test initial value of justify-items through JS
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+
+Test getting and setting justify-items through JS
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'center'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'start true'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+
+Test bad combinaisons of justify-items
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+
+Test the value 'initial'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'center'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'auto'
+
+Test the value 'inherit'
+PASS getComputedStyle(parentElement, '').getPropertyValue('justify-items') is 'end'
+PASS getComputedStyle(element, '').getPropertyValue('justify-items') is 'end'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698