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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-invalid-selection-crash.html

Issue 2727293003: [InputEvent] Add null check before converting Range to StaticRange (Closed)
Patch Set: Created 3 years, 9 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
(Empty)
1 <html>
2 <title>InputEvent: Invalid selection should not crash</title>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <script>
6 async_test(t => {
7 assert_not_equals(window.testRunner, undefined, 'This test requires testRunn er.');
8 document.addEventListener('DOMContentLoaded', t.step_func_done(() => {
9 document.designMode = 'on';
10 document.execCommand('selectAll');
11 document.execCommand('insertText', false, 'abc');
12 document.documentElement.innerText = null;
13 testRunner.execCommand('undo');
14 }));
15 });
16 </script>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698