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

Side by Side Diff: LayoutTests/fast/dom/HTMLLinkElement/disabled-attribute.html

Issue 7046023: Revert 84329 - 2011-04-19 Julien Chaffraix <jchaffraix@codeaurora.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/disabled-attribute-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css">
5 <script src="../../../fast/js/resources/js-test-pre.js"></script>
6 <link id="test" type="text/css" rel="stylesheet" href="resources/htmllink-disabl e.css"/>
7 <link id="test_nostyle" type="text/css" rel="stylesheet" />
8
9 </head>
10 <body>
11 <p id="description"></p>
12 <div id="console"></div>
13 <script>
14 description('This test checks HTMLLinkElement disabled conforms to HTML5 spec fo r the bug id #<a href="https://bugs.webkit.org/show_bug.cgi?id=45425">45425</a> .');
15
16
17 var test = document.getElementById('test');
18 var test_nostyle = document.getElementById('test_nostyle');
19 // check initial value, should be false
20 shouldBe('test.disabled', 'false');
21 // set value to true
22 test.disabled = true;
23 shouldBe('test.disabled', 'true');
24 // Updated value should be reflected in style.sheet.disabled, 'true' in this cas e
25 shouldBe('test.sheet.disabled', 'true');
26 // now set style.sheet.disabled to false
27 test.sheet.disabled = false;
28 shouldBe('test.sheet.disabled', 'false');
29 // Updated value should be refectled in test.disabled
30 shouldBe('test.disabled', 'false');
31 debug('<br>');
32 // verify link.sheet is null since it does not contain an href attribute
33 shouldBe('test_nostyle.sheet', 'null');
34 // if link.sheet = null link.disabled should be false
35 shouldBe('test_nostyle.disabled', 'false');
36 // setting it to true
37 test_nostyle.disabled = true;
38 // should do nothing on setting.
39 shouldBe('test_nostyle.disabled', 'false');
40
41
42 successfullyParsed= true;
43 </script>
44 <script src="../../../fast/js/resources/js-test-post.js"></script>
45 </body>
46 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/disabled-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698