| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Test fixture for ../background.js. | 6 * Test fixture for background.js. |
| 7 * @constructor | 7 * @constructor |
| 8 * @extends {testing.Test} | 8 * @extends {testing.Test} |
| 9 */ | 9 */ |
| 10 function GoogleNowBackgroundUnitTest () { | 10 function GoogleNowBackgroundUnitTest () { |
| 11 testing.Test.call(this); | 11 testing.Test.call(this); |
| 12 } | 12 } |
| 13 | 13 |
| 14 GoogleNowBackgroundUnitTest.prototype = { | 14 GoogleNowBackgroundUnitTest.prototype = { |
| 15 __proto__: testing.Test.prototype, | 15 __proto__: testing.Test.prototype, |
| 16 | 16 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 chromeTabsCreateSavedArgs.match(eqJSON({url: testActionUrl})), | 369 chromeTabsCreateSavedArgs.match(eqJSON({url: testActionUrl})), |
| 370 chromeTabsCreateSavedArgs.match(ANYTHING)). | 370 chromeTabsCreateSavedArgs.match(ANYTHING)). |
| 371 will(invokeCallback(chromeTabsCreateSavedArgs, 1, testCreatedTab)); | 371 will(invokeCallback(chromeTabsCreateSavedArgs, 1, testCreatedTab)); |
| 372 this.mockApis.expects(once()).chrome_windows_create( | 372 this.mockApis.expects(once()).chrome_windows_create( |
| 373 eqJSON({url: testActionUrl})); | 373 eqJSON({url: testActionUrl})); |
| 374 | 374 |
| 375 // Invoking the tested function. | 375 // Invoking the tested function. |
| 376 onNotificationClicked( | 376 onNotificationClicked( |
| 377 testNotificationId, this.mockLocalFunctions.functions().selector); | 377 testNotificationId, this.mockLocalFunctions.functions().selector); |
| 378 }); | 378 }); |
| OLD | NEW |