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

Issue 11275054: Modified unittest to use new argument syntax. (Closed)

Created:
8 years, 1 month ago by gram
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Modified unittest to use new argument syntax. Fix affected unit tests. Clean up unit tests that are using Expect instead of expect. Get rid of warnings about duplicated library names. Committed: https://code.google.com/p/dart/source/detail?r=14158

Patch Set 1 #

Total comments: 34

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1616 lines, -1375 lines) Patch
M pkg/logging/test/logging_test.dart View 1 5 chunks +24 lines, -24 lines 0 comments Download
M pkg/unittest/collection_matchers.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/unittest/config.dart View 1 2 chunks +2 lines, -1 line 0 comments Download
M pkg/unittest/core_matchers.dart View 1 16 chunks +51 lines, -31 lines 0 comments Download
M pkg/unittest/description.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/unittest/expect.dart View 1 2 chunks +7 lines, -9 lines 0 comments Download
M pkg/unittest/future_matchers.dart View 1 2 chunks +4 lines, -1 line 0 comments Download
M pkg/unittest/html_config.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/html_enhanced_config.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/interactive_html_config.dart View 1 1 chunk +1 line, -1 line 1 comment Download
M pkg/unittest/interfaces.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/unittest/map_matchers.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/unittest/matcher.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/unittest/mock.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M pkg/unittest/numeric_matchers.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/unittest/operator_matchers.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/unittest/string_matchers.dart View 1 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/unittest/test/matchers_test.dart View 1 2 chunks +3 lines, -6 lines 0 comments Download
M pkg/unittest/test/unittest_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/unittest/test_case.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/unittest/unittest.dart View 1 1 chunk +16 lines, -16 lines 0 comments Download
M pkg/unittest/vm_config.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/audiobuffersourcenode_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/audiocontext_test.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/html/audioelement_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/blob_constructor_test.dart View 1 3 chunks +4 lines, -3 lines 0 comments Download
M tests/html/canvas_pixel_array_type_alias_test.dart View 1 2 chunks +3 lines, -2 lines 0 comments Download
M tests/html/client_rect_test.dart View 1 2 chunks +5 lines, -2 lines 0 comments Download
M tests/html/contentelement_test.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/html/cross_frame_test.dart View 1 3 chunks +29 lines, -13 lines 0 comments Download
M tests/html/css_rule_list_test.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/html/css_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/cssstyledeclaration_test.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tests/html/dart_object_local_storage_test.dart View 1 1 chunk +4 lines, -4 lines 0 comments Download
M tests/html/datalistelement_test.dart View 1 3 chunks +5 lines, -2 lines 0 comments Download
M tests/html/document_test.dart View 1 1 chunk +10 lines, -4 lines 0 comments Download
M tests/html/documentfragment_test.dart View 1 10 chunks +93 lines, -87 lines 0 comments Download
M tests/html/dom_constructors_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/domparser_test.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M tests/html/element_add_test.dart View 1 14 chunks +21 lines, -17 lines 0 comments Download
M tests/html/element_classes_test.dart View 1 3 chunks +40 lines, -42 lines 0 comments Download
M tests/html/element_constructor_1_test.dart View 1 1 chunk +25 lines, -12 lines 0 comments Download
M tests/html/element_test.dart View 1 10 chunks +125 lines, -112 lines 0 comments Download
M tests/html/element_webkit_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/event_customevent_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/event_test.dart View 1 8 chunks +73 lines, -73 lines 0 comments Download
M tests/html/events_test.dart View 1 3 chunks +8 lines, -8 lines 0 comments Download
M tests/html/exceptions_test.dart View 1 2 chunks +6 lines, -6 lines 0 comments Download
M tests/html/fileapi_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/html/form_data_test.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M tests/html/form_element_test.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests/html/hidden_dom_1_test.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tests/html/hidden_dom_2_test.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tests/html/htmlaudioelement_test.dart View 1 1 chunk +8 lines, -5 lines 0 comments Download
M tests/html/htmlcollection_test.dart View 1 10 chunks +81 lines, -81 lines 0 comments Download
M tests/html/htmlelement_test.dart View 1 4 chunks +32 lines, -32 lines 0 comments Download
M tests/html/indexeddb_1_test.dart View 1 5 chunks +12 lines, -13 lines 0 comments Download
M tests/html/indexeddb_3_test.dart View 1 3 chunks +9 lines, -9 lines 0 comments Download
M tests/html/indexeddb_4_test.dart View 1 2 chunks +6 lines, -6 lines 0 comments Download
M tests/html/inner_frame_test.dart View 1 4 chunks +4 lines, -4 lines 0 comments Download
M tests/html/instance_of_test.dart View 1 1 chunk +39 lines, -25 lines 0 comments Download
M tests/html/isolates_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/js_interop_2_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/js_interop_3_test.dart View 1 2 chunks +5 lines, -5 lines 0 comments Download
M tests/html/js_interop_4_test.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M tests/html/key_name_location_test.dart View 1 1 chunk +14 lines, -14 lines 0 comments Download
M tests/html/localstorage_test.dart View 1 2 chunks +35 lines, -36 lines 0 comments Download
M tests/html/location_test.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M tests/html/measurement_test.dart View 1 2 chunks +4 lines, -4 lines 0 comments Download
M tests/html/mutationobserver_test.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/html/native_gc_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/node_test.dart View 1 4 chunks +71 lines, -61 lines 0 comments Download
M tests/html/postmessage_structured_test.dart View 1 3 chunks +3 lines, -3 lines 0 comments Download
M tests/html/query_test.dart View 1 1 chunk +16 lines, -12 lines 0 comments Download
M tests/html/queryall_test.dart View 1 4 chunks +12 lines, -7 lines 0 comments Download
M tests/html/request_animation_frame_test.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/html/selectelement_test.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M tests/html/shadowroot_test.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/html/storage_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/svg_1_test.dart View 1 3 chunks +9 lines, -7 lines 0 comments Download
M tests/html/svg_2_test.dart View 1 1 chunk +29 lines, -12 lines 0 comments Download
M tests/html/svg_3_test.dart View 1 7 chunks +33 lines, -18 lines 0 comments Download
M tests/html/svgelement2_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/svgelement_test.dart View 1 7 chunks +20 lines, -18 lines 0 comments Download
M tests/html/transferables_test.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/html/typed_arrays_1_test.dart View 1 1 chunk +12 lines, -9 lines 0 comments Download
M tests/html/typed_arrays_2_test.dart View 1 2 chunks +36 lines, -36 lines 0 comments Download
M tests/html/typed_arrays_3_test.dart View 1 2 chunks +8 lines, -8 lines 0 comments Download
M tests/html/typed_arrays_4_test.dart View 1 2 chunks +12 lines, -12 lines 0 comments Download
M tests/html/typing_test.dart View 1 3 chunks +7 lines, -4 lines 0 comments Download
M tests/html/unknownelement_test.dart View 1 2 chunks +5 lines, -2 lines 0 comments Download
M tests/html/url_test.dart View 1 4 chunks +4 lines, -4 lines 0 comments Download
M tests/html/util.dart View 1 1 chunk +7 lines, -8 lines 0 comments Download
M tests/html/utils.dart View 1 4 chunks +13 lines, -12 lines 0 comments Download
M tests/html/webgl_1_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/websocket_test.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M tests/html/websql_test.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download
M tests/html/window_eq_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/window_mangling_test.dart View 1 1 chunk +5 lines, -5 lines 0 comments Download
M tests/html/window_nosuchmethod_test.dart View 1 2 chunks +5 lines, -5 lines 0 comments Download
M tests/html/xhr_cross_origin_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/html/xmldocument_test.dart View 1 14 chunks +151 lines, -151 lines 0 comments Download
M tests/html/xmlelement_test.dart View 1 10 chunks +151 lines, -146 lines 0 comments Download
M tests/html/xsltprocessor_test.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M tests/isolate/multiple_timer_test.dart View 1 1 chunk +8 lines, -8 lines 0 comments Download
M tests/isolate/timer_cancel_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/timer_isolate_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/timer_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/pubspec_test.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M utils/tests/pub/version_solver_test.dart View 1 2 chunks +20 lines, -6 lines 0 comments Download
M utils/tests/pub/version_test.dart View 1 8 chunks +37 lines, -35 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
gram
This is a monster, and so I don't drive Siggy to the edge of madness, ...
8 years, 1 month ago (2012-10-26 00:28:20 UTC) #1
Siggi Cherem (dart-lang)
https://codereview.chromium.org/11275054/diff/1/pkg/unittest/expect.dart File pkg/unittest/expect.dart (right): https://codereview.chromium.org/11275054/diff/1/pkg/unittest/expect.dart#newcode33 pkg/unittest/expect.dart:33: void expect(actual, matcher, { String reason : null, nits: ...
8 years, 1 month ago (2012-10-26 00:44:51 UTC) #2
gram
A few updates https://codereview.chromium.org/11275054/diff/1/tests/html/window_open_test.dart File tests/html/window_open_test.dart (right): https://codereview.chromium.org/11275054/diff/1/tests/html/window_open_test.dart#newcode14 tests/html/window_open_test.dart:14: Good catch - this file should ...
8 years, 1 month ago (2012-10-26 00:50:34 UTC) #3
Jennifer Messerly
this is cool, I like the new syntax https://chromiumcodereview.appspot.com/11275054/diff/1/pkg/unittest/expect.dart File pkg/unittest/expect.dart (right): https://chromiumcodereview.appspot.com/11275054/diff/1/pkg/unittest/expect.dart#newcode33 pkg/unittest/expect.dart:33: void ...
8 years, 1 month ago (2012-10-26 02:57:05 UTC) #4
nweiz
lgtm https://codereview.chromium.org/11275054/diff/1/utils/tests/pub/pubspec_test.dart File utils/tests/pub/pubspec_test.dart (right): https://codereview.chromium.org/11275054/diff/1/utils/tests/pub/pubspec_test.dart#newcode41 utils/tests/pub/pubspec_test.dart:41: expect(!foo.constraint.allows(new Version(3, 4, 5)), isTrue); Can we get ...
8 years, 1 month ago (2012-10-26 18:36:33 UTC) #5
gram
PTAL Apart from addressing the comments thus far, I: - updated the library/import syntax to ...
8 years, 1 month ago (2012-10-26 22:26:27 UTC) #6
Jennifer Messerly
lgtm https://codereview.chromium.org/11275054/diff/1/pkg/unittest/mock.dart File pkg/unittest/mock.dart (right): https://codereview.chromium.org/11275054/diff/1/pkg/unittest/mock.dart#newcode435 pkg/unittest/mock.dart:435: expect(logs, matcher, reason:filter, failureHandler: _mockFailureHandler); On 2012/10/26 22:26:27, ...
8 years, 1 month ago (2012-10-26 22:50:16 UTC) #7
Siggi Cherem (dart-lang)
8 years, 1 month ago (2012-10-29 16:58:34 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698