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

Unified Diff: chrome/test/data/extensions/api_test/rlz/test.js

Issue 3029001: When I specified the rlz chrome extension api, I explicitly did not include a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/rlz/test.js
===================================================================
--- chrome/test/data/extensions/api_test/rlz/test.js (revision 52654)
+++ chrome/test/data/extensions/api_test/rlz/test.js (working copy)
@@ -106,5 +106,40 @@
chrome.test.succeed();
});
},
+
+ function sendFinancialPing() {
+ // Bad product.
+ try {
+ chrome.experimental.rlz.sendFinancialPing('', ['D3'], 'sig', 'TEST',
+ 'id', 'en', false);
+ // Should not reach this line since the above call throws.
+ chrome.test.fail();
+ } catch(ex) {
+ }
+
+ // Bad access point list.
+ try {
+ chrome.experimental.rlz.sendFinancialPing('D', null, 'sig', 'TEST',
+ 'id', 'en', false);
+ // Should not reach this line since the above call throws.
+ chrome.test.fail();
+ } catch(ex) {
+ }
+
+ // Bad access point list.
+ try {
+ chrome.experimental.rlz.sendFinancialPing('D', [], 'sig', 'TEST',
+ 'id', 'en', false);
+ // Should not reach this line since the above call throws.
+ chrome.test.fail();
+ } catch(ex) {
+ }
+
+ // Valid call.
+ chrome.experimental.rlz.sendFinancialPing('D', ['D3'], 'sig', 'TEST',
+ 'id', 'en', false);
+
+ chrome.test.succeed();
+ }
]);
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698