Files.app: Refactoring for the onMessage function of FileManagerBrowserTest.
commit15161ce4e44d4945e6e7bdef17b2ca2d316e1578
authorhirono <hirono@chromium.org>
Fri, 24 Oct 2014 09:23:22 +0000 (24 02:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 24 Oct 2014 09:23:56 +0000 (24 09:23 +0000)
tree8a46aea41edf6d37652eb39c4d5a0e9e1aef7788
parent8e60ab5d142eaa8c04a385f265f1c328ad5a9b6d
Files.app: Refactoring for the onMessage function of FileManagerBrowserTest.

Previously onMessage function of FileManagerBrowserTest returns a string, but
the format of the return values is not consistent among the message types.

Also the onMessage function retunrs the value even if it is fatal error, but for
the case, we can stop the test directly in the function.

The CL removes unrequired result values, and adds test assertions for fatal
errors.

BUG=None
TEST=None

Review URL: https://codereview.chromium.org/667843005

Cr-Commit-Position: refs/heads/master@{#301076}
chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/copy_between_windows.js
chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/file_display.js
chrome/test/data/extensions/api_test/file_manager_browsertest/test_util.js