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

Issue 2581613002: Use real IDL types in unit test stubs. (Closed)

Created:
4 years ago by dglazkov
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use real IDL types in unit test stubs. Instead of using generic stub objects, use actual types, because that is more accurate. R=bashi BUG=673214 Committed: https://crrev.com/32158f86547acf2ae9ba9997674ff2ac376cb631 Cr-Commit-Position: refs/heads/master@{#439048}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Feedback addressed. #

Patch Set 3 : Without early returns. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -26 lines) Patch
M third_party/WebKit/Source/bindings/scripts/code_generator_web_module_test.py View 2 chunks +7 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/idl_definitions.py View 1 2 1 chunk +14 lines, -14 lines 0 comments Download
A third_party/WebKit/Source/bindings/scripts/idl_definitions_test.py View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (19 generated)
dglazkov
PTAL.
4 years ago (2016-12-15 04:40:50 UTC) #4
haraken
LGTM
4 years ago (2016-12-15 04:43:12 UTC) #5
bashi
lgtm with one comment. https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py#newcode454 third_party/WebKit/Source/bindings/scripts/idl_definitions.py:454: # Defaults, overridden below nit: ...
4 years ago (2016-12-15 04:51:15 UTC) #7
dglazkov
On 2016/12/15 at 04:51:15, bashi wrote: > lgtm with one comment. > > https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py > ...
4 years ago (2016-12-15 04:54:51 UTC) #8
dglazkov
Feedback addressed.
4 years ago (2016-12-15 04:55:06 UTC) #9
peria
https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py#newcode451 third_party/WebKit/Source/bindings/scripts/idl_definitions.py:451: self.is_read_only = bool(node.GetProperty('READONLY')) Could you merge these 3 lines ...
4 years ago (2016-12-15 04:57:09 UTC) #13
dglazkov
https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py#newcode451 third_party/WebKit/Source/bindings/scripts/idl_definitions.py:451: self.is_read_only = bool(node.GetProperty('READONLY')) On 2016/12/15 at 04:57:08, peria wrote: ...
4 years ago (2016-12-15 05:24:24 UTC) #15
peria
https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2581613002/diff/1/third_party/WebKit/Source/bindings/scripts/idl_definitions.py#newcode451 third_party/WebKit/Source/bindings/scripts/idl_definitions.py:451: self.is_read_only = bool(node.GetProperty('READONLY')) On 2016/12/15 05:24:24, dglazkov wrote: > ...
4 years ago (2016-12-15 05:33:40 UTC) #16
dglazkov
On 2016/12/15 at 05:33:40, peria wrote: > I hope we don't have an early return, ...
4 years ago (2016-12-16 02:49:03 UTC) #19
peria
On 2016/12/16 02:49:03, dglazkov wrote: > On 2016/12/15 at 05:33:40, peria wrote: > > I ...
4 years ago (2016-12-16 02:53:21 UTC) #20
dglazkov
Without early returns.
4 years ago (2016-12-16 03:00:25 UTC) #21
dglazkov
PTAL.
4 years ago (2016-12-16 03:17:38 UTC) #24
peria
On 2016/12/16 03:17:38, dglazkov wrote: > PTAL. Thank you for the change. LGTM
4 years ago (2016-12-16 04:09:20 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2581613002/40001
4 years ago (2016-12-16 06:26:27 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-16 06:33:21 UTC) #33
commit-bot: I haz the power
4 years ago (2016-12-16 06:35:16 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/32158f86547acf2ae9ba9997674ff2ac376cb631
Cr-Commit-Position: refs/heads/master@{#439048}

Powered by Google App Engine
This is Rietveld 408576698