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

Side by Side Diff: chrome/test/data/extensions/api_test/feedback_private/basic/test.js

Issue 516083002: Fix and re-enable the Feedback API Test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/browser/extensions/api/feedback_private/feedback_private_apitest.cc ('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
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 chrome.test.runTests([ 5 chrome.test.runTests([
6 function getUserEmailTest() { 6 function getUserEmailTest() {
7 chrome.feedbackPrivate.getUserEmail( 7 chrome.feedbackPrivate.getUserEmail(
8 chrome.test.callbackPass(function(email) { 8 chrome.test.callbackPass(function(email) {
9 if (email.length > 0) { 9 if (email.length > 0) {
10 // If we actually have an e-mail address returned, do a simple sanity 10 // If we actually have an e-mail address returned, do a simple sanity
11 // check on it. 11 // check on it.
12 chrome.test.assertTrue(email.indexOf('@') != -1); 12 chrome.test.assertTrue(email.indexOf('@') != -1);
13 } 13 }
14 })); 14 }));
15 }, 15 },
16 function getSystemInfoTest() { 16 function getSystemInfoTest() {
17 chrome.feedbackPrivate.getSystemInformation( 17 chrome.feedbackPrivate.getSystemInformation(
18 chrome.test.callbackPass(function(sysinfo) { 18 chrome.test.callbackPass(function(sysinfo) {
19 // Make sure we get 'some' system info. 19 // Make sure we get 'some' system info.
20 chrome.test.assertTrue(sysinfo.length >= 1); 20 chrome.test.assertTrue(sysinfo.length >= 1);
21 })); 21 }));
22 }, 22 },
23 function sendFeedbackTest() { 23 function sendFeedbackTest() {
24 var feedbackInfo = {}; 24 var feedbackInfo = {};
not at google - send to devlin 2014/08/28 22:45:51 feedbackInfo = { description: ..., sendHistogr
rkc 2014/08/28 23:31:18 Done.
25 feedbackInfo.description = 'This is a test description'; 25 feedbackInfo.description = 'This is a test description';
26 feedbackInfo.sendHistograms = false;
26 chrome.feedbackPrivate.sendFeedback( 27 chrome.feedbackPrivate.sendFeedback(
27 feedbackInfo, chrome.test.callbackPass(function(response) { 28 feedbackInfo, chrome.test.callbackPass(function(response) {
28 chrome.test.assertEq(response, 'success'); 29 chrome.test.assertEq(response, 'success');
29 })); 30 }));
30 } 31 }
31 ]); 32 ]);
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/feedback_private/feedback_private_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698