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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/disabled-elements/disabledElement.html

Issue 2012333004: Fix testharness paths in imported/wpt/{dom,html}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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>Disabled elements</title> 3 <title>Disabled elements</title>
4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org"> 4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
5 <link rel=help href="https://html.spec.whatwg.org/multipage/#disabled-elements"> 5 <link rel=help href="https://html.spec.whatwg.org/multipage/#disabled-elements">
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 <div id="log"></div> 8 <div id="log"></div>
9 <button disabled>button</button> 9 <button disabled>button</button>
10 <input disabled> 10 <input disabled>
11 <select disabled> 11 <select disabled>
12 <optgroup label="options" disabled> 12 <optgroup label="options" disabled>
13 <option value="option1" disabled>option1 13 <option value="option1" disabled>option1
14 <option value="option2">option2 14 <option value="option2">option2
15 </select> 15 </select>
16 <textarea disabled>textarea</textarea> 16 <textarea disabled>textarea</textarea>
17 <fieldset disabled> 17 <fieldset disabled>
(...skipping 17 matching lines...) Expand all
35 }); 35 });
36 36
37 ["a", "span"].forEach(function(el) { 37 ["a", "span"].forEach(function(el) {
38 test(function() { 38 test(function() {
39 var element = document.querySelector(el); 39 var element = document.querySelector(el);
40 element.focus(); 40 element.focus();
41 assert_equals(document.activeElement, element, "focus on a <" + el + "> wi th a disabled attribute should make it the activeElement"); 41 assert_equals(document.activeElement, element, "focus on a <" + el + "> wi th a disabled attribute should make it the activeElement");
42 }, "A disabled <" + el + "> should be focusable"); 42 }, "A disabled <" + el + "> should be focusable");
43 }); 43 });
44 </script> 44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698