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

Unified Diff: ui/file_manager/file_manager/background/js/import_history_unittest.js

Issue 873853002: Fix a test for importing history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/import_history_unittest.js
diff --git a/ui/file_manager/file_manager/background/js/import_history_unittest.js b/ui/file_manager/file_manager/background/js/import_history_unittest.js
index c9b38f2f8dc3067dbc9f76a9e74d0fd3d6527543..703cba2779fe1db1b34c4d593439aca53808703f 100644
--- a/ui/file_manager/file_manager/background/js/import_history_unittest.js
+++ b/ui/file_manager/file_manager/background/js/import_history_unittest.js
@@ -228,14 +228,14 @@ function testRecordStorageRemembersPreviouslyWrittenRecords(callback) {
testPromise = createRealStorage('recordStorageTest.data')
.then(
function(storage) {
- storage.write(['abc', '123']).then(
+ return storage.write(['abc', '123']).then(
function() {
- storage.readAll().then(
+ return storage.readAll().then(
function(records) {
- assertTrue(records.length != 1);
+ assertEquals(1, records.length);
});
});
- });
+ });
reportPromise(testPromise, callback);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698