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

Side by Side Diff: chrome/test/data/extensions/api_test/get_channel_id/background.js

Issue 10920084: don't display platform app resources in normal browser windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgot to add Created 8 years, 2 months 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 (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 function verifyDetails(details) { 5 function verifyDetails(details) {
6 chrome.test.assertEq(1, details.subchannelId); 6 chrome.test.assertEq(1, details.subchannelId);
7 chrome.test.assertEq("payload", details.payload); 7 chrome.test.assertEq("payload", details.payload);
8 } 8 }
9 9
10 function testEventDispatch() { 10 function testEventDispatch() {
11 chrome.experimental.pushMessaging.onMessage.addListener( 11 chrome.experimental.pushMessaging.onMessage.addListener(
12 chrome.test.callbackPass(verifyDetails)); 12 chrome.test.callbackPass(verifyDetails));
13 chrome.test.sendMessage('ready'); 13 chrome.test.sendMessage('ready');
14 } 14 }
15 15
16 chrome.test.runTests([testEventDispatch]); 16 chrome.test.runTests([testEventDispatch]);
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/test/data/extensions/api_test/get_channel_id/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698