blob: 3aad9fd11a244edd524747ae10f04a021715bc0c [file] [log] [blame]
Test should not crash.
Test does replaceStates both from the main frame and from an iframe and makes sure they both count against state object count limit.
Successfully added item: 0
Successfully added item: 1
Successfully added item: 2
Successfully added item: 3
Successfully added item: 4
Successfully added item: 5
Successfully added item: 6
Successfully added item: 7
Successfully added item: 8
Successfully added item: 9
Successfully added item: 10
Successfully added item: 11
Successfully added item: 12
Successfully added item: 13
Successfully added item: 14
Successfully added item: 15
Successfully added item: 16
Successfully added item: 17
Successfully added item: 18
Successfully added item: 19
Successfully added item: 20
Successfully added item: 21
Successfully added item: 22
Successfully added item: 23
Successfully added item: 24
Successfully added item: 25
Successfully added item: 26
Successfully added item: 27
Successfully added item: 28
Successfully added item: 29
Successfully added item: 30
Successfully added item: 31
Successfully added item: 32
Successfully added item: 33
Successfully added item: 34
Successfully added item: 35
Successfully added item: 36
Successfully added item: 37
Successfully added item: 38
Successfully added item: 39
Successfully added item: 40
Successfully added item: 41
Successfully added item: 42
Successfully added item: 43
Successfully added item: 44
Successfully added item: 45
Successfully added item: 46
Successfully added item: 47
Successfully added item: 48
Successfully added item: 49
Successfully added item: 50
Successfully added item: 51
Successfully added item: 52
Successfully added item: 53
Successfully added item: 54
Successfully added item: 55
Successfully added item: 56
Successfully added item: 57
Successfully added item: 58
Successfully added item: 59
Successfully added item: 60
Successfully added item: 61
Successfully added item: 62
Successfully added item: 63
Successfully added item: 64
Successfully added item: 65
Successfully added item: 66
Successfully added item: 67
Successfully added item: 68
Successfully added item: 69
Successfully added item: 70
Successfully added item: 71
Successfully added item: 72
Successfully added item: 73
Successfully added item: 74
--------
Frame: '<!--frame1-->'
--------
Adding state objects in iframe
Successfully added item: 0
Successfully added item: 1
Successfully added item: 2
Successfully added item: 3
Successfully added item: 4
Successfully added item: 5
Successfully added item: 6
Successfully added item: 7
Successfully added item: 8
Successfully added item: 9
Successfully added item: 10
Successfully added item: 11
Successfully added item: 12
Successfully added item: 13
Successfully added item: 14
Successfully added item: 15
Successfully added item: 16
Successfully added item: 17
Successfully added item: 18
Successfully added item: 19
Successfully added item: 20
Successfully added item: 21
Successfully added item: 22
Successfully added item: 23
Successfully added item: 24
Expected exception: SecurityError: Attempt to use history.replaceState() more than 100 times per 30.000000 seconds