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

Side by Side Diff: chrome/test/data/extensions/api_test/offers/component_extension/test.js

Issue 10086011: [Chrome OS ECHO]: Rename API and method names (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address tbarzic's comments Created 8 years, 8 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
« no previous file with comments | « chrome/test/data/extensions/api_test/offers/component_extension/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 chrome.test.runTests([
6 function getCouponCodeTest() {
7 var expected_code = "";
8 // TODO(gauravsh): Mock out StatisticsProvider to make getCouponCode()
9 // return a well known value for brower_tests.
10 chrome.offersPrivate.getCouponCode("COUPON_CODE",
11 chrome.test.callbackPass(function(result) {
12 chrome.test.assertTrue(result == expected_code);
13 }));
14 chrome.offersPrivate.getCouponCode("GROUP_CODE",
15 chrome.test.callbackPass(function(result) {
16 chrome.test.assertTrue(result == expected_code);
17 }));
18 chrome.offersPrivate.getCouponCode("INVALID_CODE",
19 chrome.test.callbackPass(function(result) {
20 chrome.test.assertTrue(result == "");
21 }));
22 }
23 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/offers/component_extension/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698