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

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

Issue 62713003: Move ExtensionProcessManager to src/extensions, part 4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 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 | Annotate | Revision Log
OLDNEW
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 // Valid WEBP image. 5 // Valid WEBP image.
6 var validWEBPImageCase = { 6 var validWEBPImageCase = {
7 filename: "valid.webp", 7 filename: "valid.webp",
8 blobString: "RIFF0\0\0\0WEBPVP8 $\0\0\0\xB2\x02\0\x9D\x01\x2A" + 8 blobString: "RIFF0\0\0\0WEBPVP8 $\0\0\0\xB2\x02\0\x9D\x01\x2A" +
9 "\x01\0\x01\0\x2F\x9D\xCE\xE7s\xA8((((\x01\x9CK(\0" + 9 "\x01\0\x01\0\x2F\x9D\xCE\xE7s\xA8((((\x01\x9CK(\0" +
10 "\x05\xCE\xB3l\0\0\xFE\xD8\x80\0\0" 10 "\x05\xCE\xB3l\0\0\xFE\xD8\x80\0\0"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 } 157 }
158 if (success) { 158 if (success) {
159 chrome.test.succeed(); 159 chrome.test.succeed();
160 return; 160 return;
161 } 161 }
162 chrome.test.fail(readEntriesResults); 162 chrome.test.fail(readEntriesResults);
163 } 163 }
164 } 164 }
165 165
166 // Create a dummy window to prevent the ExtensionProcessManager from suspending 166 // Create a dummy window to prevent the ProcessManager from suspending the
167 // the chrome-test app. Needed because the writer.onerror and writer.onwriteend 167 // chrome-test app. Needed because the writer.onerror and writer.onwriteend
168 // events do not qualify as pending callbacks, so the app looks dormant. 168 // events do not qualify as pending callbacks, so the app looks dormant.
169 function CreateDummyWindowToPreventSleep() { 169 function CreateDummyWindowToPreventSleep() {
170 chrome.app.runtime.onLaunched.addListener(function() { 170 chrome.app.runtime.onLaunched.addListener(function() {
171 chrome.app.window.create('dummy.html', { 171 chrome.app.window.create('dummy.html', {
172 bounds: { 172 bounds: {
173 width: 800, 173 width: 800,
174 height: 600, 174 height: 600,
175 left: 100, 175 left: 100,
176 top: 100 176 top: 100
177 }, 177 },
178 minWidth: 800, 178 minWidth: 800,
179 minHeight: 600 179 minHeight: 600
180 }); 180 });
181 }); 181 });
182 } 182 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/data/extensions/api_test/media_galleries/picasa/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698