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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/selector-list-limits.html

Issue 2785103004: Added available bit to m_selectorIndex. (Closed)
Patch Set: Corrected expectation. Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleSet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 4
5 <style id=style></style> 5 <style id=style></style>
6 <div id=target></div> 6 <div id=target></div>
7 7
8 <script> 8 <script>
9 function selectors(n) { 9 function selectors(n) {
10 var list = []; 10 var list = [];
11 for (var i = 0; i < n; i++) { 11 for (var i = 0; i < n; i++) {
12 list.push('#foo'); 12 list.push('#foo');
13 } 13 }
14 return list.join(', '); 14 return list.join(', ');
15 } 15 }
16 16
17 var selectorLimit = 8192; 17 var selectorLimit = 16384;
rune 2017/03/31 17:52:34 This is basically test the same as the unit test I
meade_UTC10 2017/04/03 04:11:33 Yeah it makes sense to remove it, unless there's s
18 style.textContent = selectors(selectorLimit - 1) + ', #target { width: 100px; }\ n' + 18 style.textContent = selectors(selectorLimit - 1) + ', #target { width: 100px; }\ n' +
19 selectors(selectorLimit) + ', #target { height: 100px; }'; 19 selectors(selectorLimit) + ', #target { height: 100px; }';
20 20
21 test(function() { 21 test(function() {
22 assert_equals(getComputedStyle(target).width, '100px'); 22 assert_equals(getComputedStyle(target).width, '100px');
23 assert_not_equals(getComputedStyle(target).height, '100px'); 23 assert_not_equals(getComputedStyle(target).height, '100px');
24 }, 'Selector list limit is ' + selectorLimit); 24 }, 'Selector list limit is ' + selectorLimit);
25 </script> 25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698