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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html

Issue 1950613005: Fixes tests that use internals.observeGC to work with Ignition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed line couloum width. 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 <html> 1 <html>
2 <body> 2 <body>
3 <input id='text' type='text'></input> 3 <input id='text' type='text'></input>
4 4
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 <script src="../../resources/observeGCWrapper.js"></script>
6 <script> 7 <script>
7 var input = document.getElementById('text'); 8 var input = document.getElementById('text');
8 input.focus(); 9 input.focus();
9 textInputController.setMarkedText("hello", 0, 5); 10 textInputController.setMarkedText("hello", 0, 5);
10 var markedRangeResultGC = internals.observeGC(textInputController.marked Range()); 11 var markedRangeResultGC = callObserveGC(() => {
11 var selectedRangeResultGC = internals.observeGC(textInputController.sele ctedRange()); 12 return textInputController.markedRange();});
rmcilroy 2016/05/12 09:31:18 nit - '});' on newline.
12 var firstRectForCharacterRangeGC = internals.observeGC(textInputControll er.firstRectForCharacterRange(0, 0)); 13 var selectedRangeResultGC = callObserveGC(() => {
14 return textInputController.selectedRange();});
15 var firstRectForCharacterRangeGC = callObserveGC(() => {
16 return textInputController.firstRectForCharacterRange(0, 0);});
13 gc(); 17 gc();
14 shouldBeTrue('markedRangeResultGC.wasCollected'); 18 shouldBeTrue('markedRangeResultGC.wasCollected');
15 shouldBeTrue('selectedRangeResultGC.wasCollected'); 19 shouldBeTrue('selectedRangeResultGC.wasCollected');
16 shouldBeTrue('firstRectForCharacterRangeGC.wasCollected'); 20 shouldBeTrue('firstRectForCharacterRangeGC.wasCollected');
17 </script> 21 </script>
18 </body> 22 </body>
19 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698