OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2013 The Chromium Authors. All rights reserved. | 2 Copyright 2013 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 <!DOCTYPE html> | 6 <!DOCTYPE html> |
7 <html> | 7 <html> |
8 <body> | 8 <body> |
9 <script> | 9 <script> |
| 10 window.chrome = {}; |
| 11 |
10 window.setUp = function() { | 12 window.setUp = function() { |
11 window.pi = new PlayerInfo('example_id'); | 13 window.pi = new PlayerInfo('example_id'); |
12 }; | 14 }; |
13 | 15 |
14 window.tearDown = function() { | 16 window.tearDown = function() { |
15 window.pi = null; | 17 window.pi = null; |
16 }; | 18 }; |
17 | 19 |
18 // Test that an ID is set correctly. | 20 // Test that an ID is set correctly. |
19 window.testConstructorStringID = function() { | 21 window.testConstructorStringID = function() { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 value = 'value'; | 133 value = 'value'; |
132 pi.addPropertyNoRecord(timestamp, key, value); | 134 pi.addPropertyNoRecord(timestamp, key, value); |
133 | 135 |
134 assertEquals(value, pi.properties[key]); | 136 assertEquals(value, pi.properties[key]); |
135 assertEquals(0, pi.allEvents.length); | 137 assertEquals(0, pi.allEvents.length); |
136 assertEquals(1, pi.pastValues[key].length); | 138 assertEquals(1, pi.pastValues[key].length); |
137 }; | 139 }; |
138 </script> | 140 </script> |
139 </body> | 141 </body> |
140 </html> | 142 </html> |
OLD | NEW |