blob: 52b3730c187c8e247269502f2606d336ecf0e73b [file] [log] [blame]
This is a testing system and development tool for CrOS FileManager.
Contact joelhockey@ or sashab@ before adding any dependencies or new tests.
Usage:
1/ Build browser_tests target for target_os chromeos.
This script generates file <out>/gen/ui/file_manager/file_manager/test.html
2/ Load <out>/gen/ui/file_manager/file_manager/test.html in browser.
Note, the --disable-web-security flag is required in order to load
chrome://resources URLs. Using this flag also requires --user-data-dir flag.
/opt/google/chrome-unstable/chrome \
--user-data-dir=/tmp/chrome-user-data-dir \
--disable-web-security \
out/Release/gen/ui/file_manager/file_manager/test.html
3/ Open devtools and explore. Some helpful JS functions to run:
test.setupAndWaitUntilReady() // generates some test files
runTests(<test-scope>) // executes test cases in the given scope
Tests reside in this directory.
Supporting files are in subdirs.