Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 ]); | |
| OLD | NEW |