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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/html/marquee-direction-attribute-should-be-case-insensitive.html

Issue 2674673005: Move tests for MARQUEE element to html/marquee/. (Closed)
Patch Set: Created 3 years, 10 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 <!DOCTYPE html>
2 <marquee direction="DOwN">The text should move down.</marquee>
3 <marquee direction="uP">The text should move up.</marquee>
4 <marquee direction="RiGHt">The text should move right.</marquee>
5 <marquee direction="leFT">The text should move left.</marquee>
6 <script src="../../resources/js-test.js"></script>
7 <script>
8 var marquees = document.querySelectorAll('marquee');
9 for (i = 0; i < marquees.length; ++i) {
10 var marquee = marquees[i];
11 var computedStyle = getComputedStyle(marquee);
12 switch (marquee.getAttribute('direction').toLowerCase()) {
13 case 'down':
14 case 'up':
15 shouldBeEqualToString("computedStyle.whiteSpace", "normal");
16 break;
17 case 'right':
18 case 'left':
19 default:
20 shouldBeEqualToString("computedStyle.whiteSpace", "nowrap");
21 }
22 }
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698