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

Side by Side Diff: LayoutTests/fast/selectors/placeholder-shown-with-input-basics-expected.txt

Issue 1280423002: CSS4: Implement :placeholder-shown pseudo class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 Check the basic features of the ":placeholder-shown" pseudo class with the <inpu t> element.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS document.querySelectorAll(":placeholder-shown").length is 3
7 PASS document.querySelectorAll(":placeholder-shown")[0] is document.getElementBy Id("valid-placeholder")
8 PASS document.querySelectorAll(":placeholder-shown")[1] is document.getElementBy Id("valid-placeholder-with-empty-value")
9 PASS document.querySelectorAll(":placeholder-shown")[2] is document.getElementBy Id("valid-placeholder-with-empty-value2")
10 PASS getComputedStyle(document.getElementById("no-placeholder")).backgroundColor is "rgb(255, 255, 255)"
11 PASS getComputedStyle(document.getElementById("empty-placeholder")).backgroundCo lor is "rgb(255, 255, 255)"
12 PASS getComputedStyle(document.getElementById("empty-placeholder2")).backgroundC olor is "rgb(255, 255, 255)"
13 PASS getComputedStyle(document.getElementById("placeholder-contains-only-newline ")).backgroundColor is "rgb(255, 255, 255)"
14 PASS getComputedStyle(document.getElementById("placeholder-contains-only-carriag eReturn")).backgroundColor is "rgb(255, 255, 255)"
15 PASS getComputedStyle(document.getElementById("with-value")).backgroundColor is "rgb(255, 255, 255)"
16 PASS getComputedStyle(document.getElementById("valid-placeholder")).backgroundCo lor is "rgb(1, 2, 3)"
17 PASS getComputedStyle(document.getElementById("valid-placeholder-with-empty-valu e")).backgroundColor is "rgb(1, 2, 3)"
18 PASS getComputedStyle(document.getElementById("valid-placeholder-with-empty-valu e2")).backgroundColor is "rgb(1, 2, 3)"
19
20 PASS document.querySelectorAll("input:not(:placeholder-shown)").length is 6
21 PASS document.querySelectorAll("input:not(:placeholder-shown)")[0] is document.g etElementById("no-placeholder")
22 PASS document.querySelectorAll("input:not(:placeholder-shown)")[1] is document.g etElementById("empty-placeholder")
23 PASS document.querySelectorAll("input:not(:placeholder-shown)")[2] is document.g etElementById("empty-placeholder2")
24 PASS document.querySelectorAll("input:not(:placeholder-shown)")[3] is document.g etElementById("placeholder-contains-only-newline")
25 PASS document.querySelectorAll("input:not(:placeholder-shown)")[4] is document.g etElementById("placeholder-contains-only-carriageReturn")
26 PASS document.querySelectorAll("input:not(:placeholder-shown)")[5] is document.g etElementById("with-value")
27 PASS getComputedStyle(document.getElementById("no-placeholder")).color is "rgb(4 , 5, 6)"
28 PASS getComputedStyle(document.getElementById("empty-placeholder")).color is "rg b(4, 5, 6)"
29 PASS getComputedStyle(document.getElementById("empty-placeholder2")).color is "r gb(4, 5, 6)"
30 PASS getComputedStyle(document.getElementById("placeholder-contains-only-newline ")).color is "rgb(4, 5, 6)"
31 PASS getComputedStyle(document.getElementById("placeholder-contains-only-carriag eReturn")).color is "rgb(4, 5, 6)"
32 PASS getComputedStyle(document.getElementById("with-value")).color is "rgb(4, 5, 6)"
33 PASS getComputedStyle(document.getElementById("valid-placeholder")).color is "rg b(0, 0, 0)"
34 PASS getComputedStyle(document.getElementById("valid-placeholder-with-empty-valu e")).color is "rgb(0, 0, 0)"
35 PASS getComputedStyle(document.getElementById("valid-placeholder-with-empty-valu e2")).color is "rgb(0, 0, 0)"
36 PASS successfullyParsed is true
37
38 TEST COMPLETE
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698