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

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: Prefer unit test. 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4
5 <style id=style></style>
6 <div id=target></div>
7
8 <script>
9 function selectors(n) {
10 var list = [];
11 for (var i = 0; i < n; i++) {
12 list.push('#foo');
13 }
14 return list.join(', ');
15 }
16
17 var selectorLimit = 8192;
18 style.textContent = selectors(selectorLimit - 1) + ', #target { width: 100px; }\ n' +
19 selectors(selectorLimit) + ', #target { height: 100px; }';
20
21 test(function() {
22 assert_equals(getComputedStyle(target).width, '100px');
23 assert_not_equals(getComputedStyle(target).height, '100px');
24 }, 'Selector list limit is ' + selectorLimit);
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