OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <div id="outer" tabindex="-1"> | |
5 <div id="input" contenteditable>foo</div> | |
6 </div> | |
7 <script> | |
8 test(() => { | |
9 if (window.eventSender === undefined) | |
yosin_UTC9
2017/05/19 05:50:33
nit: we found new way.
assert_not_exists(window,
yoichio
2017/05/19 08:00:33
Done.
| |
10 assert_unreached('required window.eventSender'); | |
11 input.focus(); | |
12 assert_equals(document.activeElement, input); | |
13 outer.focus(); | |
14 assert_equals(document.activeElement, outer, 'outer is focued.'); | |
15 eventSender.keyDown('a'); | |
16 assert_equals(input.textContent, 'foo', 'Input value should not change.'); | |
17 }); | |
18 </script> | |
OLD | NEW |