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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/disabled.html

Issue 1358453003: update-w3c-deps import using blink e98e996cf6dfab3af465bea33279df933a764e9c: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: W3CImportExpectations Created 5 years, 3 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Selector: pseudo-classes (:disabled)</title> 3 <title>Selector: pseudo-classes (:disabled)</title>
4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org" id=link1> 4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org" id=link1>
5 <link rel=help href="https://html.spec.whatwg.org/multipage/#pseudo-classes" id= link2> 5 <link rel=help href="https://html.spec.whatwg.org/multipage/#pseudo-classes" id= link2>
6 <script src="../../../../../../resources/testharness.js"></script> 6 <script src="../../../../../../resources/testharness.js"></script>
7 <script src="../../../../../../resources/testharnessreport.js"></script> 7 <script src="../../../../../../resources/testharnessreport.js"></script>
8 <script src="utils.js"></script> 8 <script src="utils.js"></script>
9 <style> 9 <style>
10 #input4 {display:none;} 10 #input4 {display:none;}
(...skipping 30 matching lines...) Expand all
41 41
42 <script> 42 <script>
43 testSelector(":disabled", ["button2", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should match only disabled elements"); 43 testSelector(":disabled", ["button2", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should match only disabled elements");
44 44
45 document.getElementById("button2").removeAttribute("disabled"); 45 document.getElementById("button2").removeAttribute("disabled");
46 testSelector(":disabled", ["input2", "select2", "optgroup2", "option2", "texta rea2", "fieldset2", "clubname", "clubnum"], "':disabled' should not match elemen ts whose disabled attribute has been removed"); 46 testSelector(":disabled", ["input2", "select2", "optgroup2", "option2", "texta rea2", "fieldset2", "clubname", "clubnum"], "':disabled' should not match elemen ts whose disabled attribute has been removed");
47 47
48 document.getElementById("button1").setAttribute("disabled", "disabled"); 48 document.getElementById("button1").setAttribute("disabled", "disabled");
49 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set"); 49 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set");
50 50
51 document.getElementById("button1").setAttribute("disabled", "disabled");
52 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set twice");
53
51 document.getElementById("input2").setAttribute("type", "submit"); // change in put type to submit 54 document.getElementById("input2").setAttribute("type", "submit"); // change in put type to submit
52 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match disabled elements whose type has changed"); 55 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match disabled elements whose type has changed");
53 56
54 var input = document.createElement("input"); 57 var input = document.createElement("input");
55 input.setAttribute("disabled", "disabled"); 58 input.setAttribute("disabled", "disabled");
56 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should not m atch elements not in the document"); 59 testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "optio n2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should not m atch elements not in the document");
57 </script> 60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698