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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/text-selection-focus.html

Issue 2521043003: Replace LayoutTests/paint/invalidation/text-selection-focus.html with a SimTest. (Closed)
Patch Set: copyrights. Created 4 years, 1 month 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 <!doctype HTML>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <script src="../selection/resources/selection.js"></script>
4 <script src="../../resources/js-test.js"></script>
5 <div id="container">
6 Selected area
7 </div>
8 <script>
9 var jsTestIsAsync = true;
10 onload = function() {
11 description('If this test passes, a frame was scheduled when focusing the wi ndow.');
12
13 selectRange(container, 0, container, 1);
14 if (window.internals)
15 window.internals.setFocused(false);
16
17 if (window.testRunner) {
18 window.testRunner.waitUntilDone();
19 window.testRunner.dumpAsText();
20 runAfterLayoutAndPaint(function() {
21 window.internals.setFocused(true);
22 window.scheduled = window.testRunner.animationScheduled();
23 shouldBe('scheduled', 'true');
24 finishJSTest();
25 window.testRunner.notifyDone();
26
27 });
28 }
29
30 }
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698