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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-scrollamount.html

Issue 1159053005: W3C Test: import web-platform-tests/html/{introduction,obsolete} (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>HTML Test: marquee-scrollamount</title>
4 <link rel="author" title="Intel" href="http://www.intel.com/">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/multipage/obsolete .html#the-marquee-element">
6 <script src="../../../../../../resources/testharness.js"></script>
7 <script src="../../../../../../resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <marquee id="test1" scrollamount="aa">Test1</marquee>
10 <marquee id="test2" scrollamount="-1">Test2</marquee>
11 <marquee id="test3" scrollamount="10">Test3</marquee>
12 <script>
13 test(function() {
14 var mq = document.getElementById("test1");
15 assert_equals(mq.scrollAmount, 6, "The value of scrollamount should be 6.");
16 }, "The scrollamount is a string");
17
18 test(function() {
19 var mq = document.getElementById("test2");
20 assert_equals(mq.scrollAmount, 6, "The value of scrollamount should be 6.");
21 }, "The scrollamount is a negative");
22
23 test(function() {
24 var mq = document.getElementById("test3");
25 assert_equals(mq.scrollAmount, 10, "The value of scrollamount should be 10." );
26 }, "The scrollamount is a normal value");
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698