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 var doNothing = function() {}; | 12 var doNothing = function() {}; |
11 | 13 |
12 var emptyClientRenderer = { | 14 var emptyClientRenderer = { |
13 playerAdded: doNothing, | 15 playerAdded: doNothing, |
14 playerRemoved: doNothing, | 16 playerRemoved: doNothing, |
15 playerUpdated: doNothing | 17 playerUpdated: doNothing |
16 }; | 18 }; |
17 | 19 |
18 window.setUp = function() { | 20 window.setUp = function() { |
19 window.pm = new Manager(emptyClientRenderer); | 21 window.pm = new Manager(emptyClientRenderer); |
(...skipping 29 matching lines...) Expand all Loading... |
49 // Trying to select a non-existant player should throw | 51 // Trying to select a non-existant player should throw |
50 // an exception | 52 // an exception |
51 window.testSelectNonExistant = function() { | 53 window.testSelectNonExistant = function() { |
52 assertThrows(function() { | 54 assertThrows(function() { |
53 window.pm.selectPlayer('someId'); | 55 window.pm.selectPlayer('someId'); |
54 }); | 56 }); |
55 }; | 57 }; |
56 </script> | 58 </script> |
57 </body> | 59 </body> |
58 </html> | 60 </html> |
OLD | NEW |