OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2014 The Native Client 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 | 6 |
| 7 /* globals ASSERT_EQ, ASSERT_LE, ASSERT_GE, EXPECT_EQ, TEST_F, TEST */ |
| 8 /* globals chrometest, TestModuleTest, waitForExtraModuleCount */ |
| 9 /* globals waitIgnoringTerminal, ASSERT_TRUE, ASSERT_FALSE */ |
| 10 |
7 'use strict'; | 11 'use strict'; |
8 | 12 |
9 function DebugExtensionTest() { | 13 function DebugExtensionTest() { |
10 this.debugExt = null; | 14 this.debugExt = null; |
11 this.moduleId = null; | 15 this.moduleId = null; |
12 this.change = null; | 16 this.change = null; |
13 } | 17 } |
14 DebugExtensionTest.prototype = new TestModuleTest(); | 18 DebugExtensionTest.prototype = new TestModuleTest(); |
15 | 19 |
16 DebugExtensionTest.prototype.setUp = function() { | 20 DebugExtensionTest.prototype.setUp = function() { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 }).then(function(msg) { | 207 }).then(function(msg) { |
204 ASSERT_EQ('change', msg.name); | 208 ASSERT_EQ('change', msg.name); |
205 ASSERT_EQ('join', msg.cause); | 209 ASSERT_EQ('join', msg.cause); |
206 self.debugExt.postMessage({name: 'installCheck'}); | 210 self.debugExt.postMessage({name: 'installCheck'}); |
207 return self.debugExt.wait(); | 211 return self.debugExt.wait(); |
208 }).then(function(msg) { | 212 }).then(function(msg) { |
209 EXPECT_EQ('installCheckReply', msg.name, 'we are installed'); | 213 EXPECT_EQ('installCheckReply', msg.name, 'we are installed'); |
210 self.debugExt.disconnect(); | 214 self.debugExt.disconnect(); |
211 }); | 215 }); |
212 }); | 216 }); |
OLD | NEW |