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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/use-counters.html

Issue 2712603003: Move tests in fast/dom/Selection/ to editing/selection/. (Closed)
Patch Set: Created 3 years, 10 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 <title>Selection UseCounters</title> 2 <title>Selection UseCounters</title>
3 <script src="../../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 test(function() { 6 test(function() {
7 var SelectionCollapseNull = 1083; // From UseCounter.h 7 var SelectionCollapseNull = 1083; // From UseCounter.h
8 assert_false(internals.isUseCounted(document, SelectionCollapseNull)); 8 assert_false(internals.isUseCounted(document, SelectionCollapseNull));
9 document.getSelection().collapse(null, -1); 9 document.getSelection().collapse(null, -1);
10 assert_true(internals.isUseCounted(document, SelectionCollapseNull)); 10 assert_true(internals.isUseCounted(document, SelectionCollapseNull));
11 }, 'selection.collapse(null, -1)'); 11 }, 'selection.collapse(null, -1)');
12 12
13 test(function() { 13 test(function() {
14 var SelectionSetBaseAndExtentNull = 1084; // From UseCounter.h 14 var SelectionSetBaseAndExtentNull = 1084; // From UseCounter.h
15 assert_false(internals.isUseCounted(document, SelectionSetBaseAndExtentNull)); 15 assert_false(internals.isUseCounted(document, SelectionSetBaseAndExtentNull));
16 document.getSelection().setBaseAndExtent(null, 0, null, 0) 16 document.getSelection().setBaseAndExtent(null, 0, null, 0)
17 assert_true(internals.isUseCounted(document, SelectionSetBaseAndExtentNull)); 17 assert_true(internals.isUseCounted(document, SelectionSetBaseAndExtentNull));
18 }, 'selection.setBaseAndExtent(null, 0, null, 0)'); 18 }, 'selection.setBaseAndExtent(null, 0, null, 0)');
19 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698