| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 var mediaGalleries = chrome.mediaGalleries; | 5 var mediaGalleries = chrome.mediaGalleries; |
| 6 | 6 |
| 7 function StartAndCancelMediaScanTest() { | 7 function StartAndCancelMediaScanTest() { |
| 8 function StartMediaScanTest() { | 8 function StartMediaScanTest() { |
| 9 var startEventListener = function(details) { | 9 var startEventListener = function(details) { |
| 10 chrome.test.assertEq('start', details.type); | 10 chrome.test.assertEq('start', details.type); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 StartMediaScanTest(); | 30 StartMediaScanTest(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 CreateDummyWindowToPreventSleep(); | 33 CreateDummyWindowToPreventSleep(); |
| 34 | 34 |
| 35 chrome.test.runTests([ | 35 chrome.test.runTests([ |
| 36 StartAndCancelMediaScanTest, | 36 StartAndCancelMediaScanTest, |
| 37 ]); | 37 ]); |
| OLD | NEW |