Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chrome/test/data/extensions/api_test/media_galleries/read_access/test.js

Issue 2467413002: Fix MediaGalleriesPlatformAppBrowserTest tests with PlzNavigate. (Closed)
Patch Set: a Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var expectedGalleryEntryLength; 6 var expectedGalleryEntryLength;
7 7
8 function TestFirstFilesystem(verifyFilesystem) { 8 function TestFirstFilesystem(verifyFilesystem) {
9 function getMediaFileSystemsList() { 9 function getMediaFileSystemsList() {
10 mediaGalleries.getMediaFileSystems(getMediaFileSystemsCallback); 10 mediaGalleries.getMediaFileSystems(getMediaFileSystemsCallback);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 function GetMediaFileSystemMetadataTest() { 45 function GetMediaFileSystemMetadataTest() {
46 function verifyFilesystem(filesystem) { 46 function verifyFilesystem(filesystem) {
47 var metadata = mediaGalleries.getMediaFileSystemMetadata(filesystem); 47 var metadata = mediaGalleries.getMediaFileSystemMetadata(filesystem);
48 checkMetadata(metadata); 48 checkMetadata(metadata);
49 chrome.test.succeed(); 49 chrome.test.succeed();
50 } 50 }
51 51
52 TestFirstFilesystem(verifyFilesystem); 52 TestFirstFilesystem(verifyFilesystem);
53 } 53 }
54 54
55 CreateDummyWindowToPreventSleep();
56
57 chrome.test.getConfig(function(config) { 55 chrome.test.getConfig(function(config) {
58 customArg = JSON.parse(config.customArg); 56 customArg = JSON.parse(config.customArg);
59 expectedGalleryEntryLength = customArg[0]; 57 expectedGalleryEntryLength = customArg[0];
60 58
61 chrome.test.runTests([ 59 chrome.test.runTests([
62 ReadDirectoryTest, 60 ReadDirectoryTest,
63 ReadFileToBytesTest, 61 ReadFileToBytesTest,
64 GetMediaFileSystemMetadataTest, 62 GetMediaFileSystemMetadataTest,
65 ]); 63 ]);
66 }) 64 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698