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

Unified Diff: LayoutTests/fast/scroll-behavior/parse-scroll-behavior-expected.txt

Issue 140253004: Implement 'scroll-behavior' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 6 years, 11 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/scroll-behavior/parse-scroll-behavior-expected.txt
diff --git a/LayoutTests/fast/scroll-behavior/parse-scroll-behavior-expected.txt b/LayoutTests/fast/scroll-behavior/parse-scroll-behavior-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fdf34e89ae5f5a9eb84cc115c4523d4b4ed63712
--- /dev/null
+++ b/LayoutTests/fast/scroll-behavior/parse-scroll-behavior-expected.txt
@@ -0,0 +1,31 @@
+Test that setting and getting scroll-behavior works as expected
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test getting scroll-behavior set through CSS
+PASS getComputedStyle(scrollBehaviorInstant, '').getPropertyValue('scroll-behavior') is 'instant'
+PASS getComputedStyle(scrollBehaviorSmooth, '').getPropertyValue('scroll-behavior') is 'smooth'
+
+Test initial value of scroll-behavior
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'instant'
+
+Test getting and setting scroll-behavior through JS
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smooth'
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'instant'
+
+Test the value 'initial'
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smooth'
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'instant'
+
+Test the value 'inherit'
+PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is 'smooth'
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smooth'
+
+Test that scroll-behavior is not inherited by default
+PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is 'smooth'
+PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'instant'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698