diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 21:26:15 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 21:26:15 +0000 |
commit | 2f70342531d0cb7335ea88ec5579d0a8a8bb114f (patch) | |
tree | bf1883a26ccf8493b5419fb239190619c249481b /android_webview | |
parent | ae6f06153630c4c0940a4630443ae4faf44ef409 (diff) | |
download | chromium_src-2f70342531d0cb7335ea88ec5579d0a8a8bb114f.zip chromium_src-2f70342531d0cb7335ea88ec5579d0a8a8bb114f.tar.gz chromium_src-2f70342531d0cb7335ea88ec5579d0a8a8bb114f.tar.bz2 |
[Gin] Add a basic unit testing framework
Previously, we were using JavaScript bindings to gtest to unit test JavaScript
code in Gin and Mojo. The gtest bindings were very basic and not very
idiomatic.
This CL introduces a simple AMD module call "expect" to help us write more
idiomatic unit tests. The API for "expect" is based on the popular Jasmine unit
testing framework for node.js. I investigated just importing one of Node's many
unit testing frameworks, but they all try to do too much (e.g., drive the
entire test harness via Node's file system interface).
The "expect" modules doesn't try to drive the testing process. We just let
gtest handle that. Instead, "expect" just provides a simple language in which
to write test assertions. We'll likely evolve our testing strategy over time,
but hopefully this CL is an improvement over the primitive gtest bindings.
R=jochen@chromium.org
TBR=joth@chromium.org
BUG=none
Review URL: https://codereview.chromium.org/85223002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rwxr-xr-x | android_webview/tools/webview_licenses.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android_webview/tools/webview_licenses.py b/android_webview/tools/webview_licenses.py index 98653c0..9702465 100755 --- a/android_webview/tools/webview_licenses.py +++ b/android_webview/tools/webview_licenses.py @@ -105,6 +105,8 @@ def _CheckLicenseHeaders(excluded_dirs_list, whitelisted_files): excluded_dirs_list.append('chrome/tools/test/reference_build') # This is tests directory, doesn't exist in the snapshot excluded_dirs_list.append('content/test/data') + # This is a tests directory that doesn't exist in the shipped product. + excluded_dirs_list.append('gin/test') # This is a test output directory excluded_dirs_list.append('data/dom_perf') # Histogram tools, doesn't exist in the snapshot |