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

Side by Side Diff: chrome/test/data/extensions/api_test/log_private/dump_logs/test.js

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: all works Created 6 years, 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
Zachary Kuznia 2014/06/25 00:05:53 nit: no (c)
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 dumpLogsTest() {
7 chrome.logPrivate.dumpLogs(function(fileEntry) {
8 fileEntry.file(function(file) {
9 var reader = new FileReader();
10 reader.onloadend = function(e) {
11 if (this.result == 'log file content')
12 chrome.test.succeed();
13 else
14 chrome.test.fail('Invalid log file content');
15 };
16 reader.readAsText(file);
17 },
18 function() {
19 chrome.test.fail('File reading error');
20 });
21 });
22 }
23 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698