DescriptionMake it possible to include another file and port print_preview unit test to unit_tests.
Print Preview unit_tests were good to tackle because it brought in a dependency on the need
to include another js file.
This also hilighted another need - that of being able to include non-generative js files in gyp
and have them copied to the test_data dir, while doing both generation and copy for gtest files.
I changed the "extension" of files which generate C++ with gtest-like syntax to .gtestjs and
added a copyjs rule to the chrome_tests.gypi.
FWIW, I believe this is mostly needed for unit_tests and only applied it there, although I would
be amenable to also making this change for the webui tests to make it clear that they are not
plain js files.
R=dpapad@chromium.org
BUG=101443, 102222
TEST=unit_tests --gtest_filter=PrintPreviewUtilsUnitTest.*
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109310
Patch Set 1 #
Total comments: 36
Patch Set 2 : Address code review comments. #Patch Set 3 : Fix failing win. #Patch Set 4 : Added comments for js2gtest.js. #Patch Set 5 : Add descriptions to TEST_F's params. #
Total comments: 4
Patch Set 6 : Made cp.py script since it's fairly general. #
Total comments: 2
Messages
Total messages: 14 (0 generated)
|