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

Issue 12218151: Added unit tests for the Dart Chrome.* API wrappers. (Closed)

Created:
7 years, 10 months ago by sashab
Modified:
7 years, 10 months ago
CC:
chromium-reviews, blois, vsm, sethladd, devoncarew
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added unit tests for the Dart Chrome.* API wrappers, testing the Dart output mode from JSON Schema Compiler. The physical tests I've added are initial dummies - kalman, please take a look at the *structure* of the test setup. It feels like there is a lot of repetition of test names, but I like using python's unittest framework so it runs as a presubmit check. Any hints? I have a lot more tests I'd like to add. Note that there needs to be functionality to disable tests, e.g. there will need to be some tests that will fail from the IDL return value type bug (https://code.google.com/p/chromium/issues/detail?id=170837). Thanks, Sasha Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183709 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183931

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added --rebase flag, and removed calls to shell #

Total comments: 12

Patch Set 3 : Various style/structure fixes #

Patch Set 4 : Removed Python 2.7 dependency (assertListEqual) #

Patch Set 5 : Fixing broken tests #

Patch Set 6 : Remove print statement if outputting to file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+767 lines, -64 lines) Patch
M tools/json_schema_compiler/compiler.py View 1 2 3 4 5 6 chunks +60 lines, -50 lines 0 comments Download
A tools/json_schema_compiler/dart_generator_test.py View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/basic_event.dart View 1 chunk +40 lines, -0 lines 0 comments Download
A + tools/json_schema_compiler/dart_test/basic_event.idl View 1 chunk +5 lines, -5 lines 0 comments Download
A tools/json_schema_compiler/dart_test/basic_function.dart View 1 chunk +29 lines, -0 lines 0 comments Download
A + tools/json_schema_compiler/dart_test/basic_function.idl View 1 chunk +6 lines, -6 lines 0 comments Download
A tools/json_schema_compiler/dart_test/basic_type.dart View 1 chunk +77 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/basic_type.idl View 1 chunk +20 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/comments.dart View 1 chunk +31 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/comments.idl View 1 chunk +32 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/complex_type.dart View 1 chunk +86 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/complex_type.idl View 1 chunk +23 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/empty_namespace.dart View 1 chunk +19 lines, -0 lines 0 comments Download
A + tools/json_schema_compiler/dart_test/empty_namespace.idl View 1 chunk +2 lines, -1 line 0 comments Download
A tools/json_schema_compiler/dart_test/empty_type.dart View 1 chunk +37 lines, -0 lines 0 comments Download
A + tools/json_schema_compiler/dart_test/empty_type.idl View 1 chunk +4 lines, -2 lines 0 comments Download
A tools/json_schema_compiler/dart_test/operatable_type.dart View 1 chunk +49 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/operatable_type.idl View 1 chunk +14 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/tags.dart View 1 chunk +116 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_test/tags.idl View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
sashab
7 years, 10 months ago (2013-02-19 23:41:53 UTC) #1
not at google - send to devlin
This approach seems fine to me, apart from the little bit of shelling-out which is ...
7 years, 10 months ago (2013-02-20 00:43:01 UTC) #2
benwells
On 2013/02/20 00:43:01, kalman wrote: > This approach seems fine to me, apart from the ...
7 years, 10 months ago (2013-02-20 01:52:21 UTC) #3
sashab
Added --rebase as suggested, which prompts the user for a confirmation. Also removed calls to ...
7 years, 10 months ago (2013-02-20 02:54:23 UTC) #4
not at google - send to devlin
lgtm, a couple of style things to fix up now that compiler.py is used as ...
7 years, 10 months ago (2013-02-20 03:02:33 UTC) #5
sashab
Style & structure fixes as requested. User confirmation removed for --rebase. https://codereview.chromium.org/12218151/diff/6001/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): ...
7 years, 10 months ago (2013-02-20 03:26:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12218151/16003
7 years, 10 months ago (2013-02-20 23:23:38 UTC) #7
commit-bot: I haz the power
Presubmit check for 12218151-16003 failed and returned exit status 1. INFO:root:Found 20 file(s). testChoices (__main__.ModelTest) ...
7 years, 10 months ago (2013-02-20 23:23:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12218151/19002
7 years, 10 months ago (2013-02-20 23:40:54 UTC) #9
commit-bot: I haz the power
Failed to trigger a try job on linux_clang HTTP Error 400: Bad Request
7 years, 10 months ago (2013-02-20 23:47:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12218151/9004
7 years, 10 months ago (2013-02-20 23:47:53 UTC) #11
commit-bot: I haz the power
Change committed as 183709
7 years, 10 months ago (2013-02-21 01:49:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12218151/6025
7 years, 10 months ago (2013-02-21 22:28:40 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-22 00:27:23 UTC) #14
Message was sent while issue was closed.
Change committed as 183931

Powered by Google App Engine
This is Rietveld 408576698