OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script src="../../../resources/testharness.js"></script> | |
4 <script src="../../../resources/testharnessreport.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 'use strict'; | |
9 | |
10 // This value must match that in Source/core/frame/History.cpp. | |
11 const kStateUpdateLimit = 50; | |
12 for (let i = 0; i < kStateUpdateLimit; ++i) { | |
13 history.pushState("SpammyHistoryItem", "" + i); | |
14 } | |
15 assert_equals(kStateUpdateLimit, history.length); | |
16 | |
17 history.pushState("DiscardedSpamItem", "51"); | |
kinuko
2017/07/11 00:38:04
I wanted to say this discarsion is impl-specific b
| |
18 assert_equals(kStateUpdateLimit, history.length); | |
19 | |
20 done(); | |
21 </script> | |
22 </body> | |
23 </html> | |
OLD | NEW |