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

Issue 1017613002: Migrate Remoting Webapp Unittests to use QUnit 2.0 syntax. (Closed)

Created:
5 years, 9 months ago by kelvinp
Modified:
5 years, 9 months ago
Reviewers:
John Williams, Jamie
CC:
chromium-reviews, jshin+watch_chromium.org, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate remoting webapp unittests to use QUnit 2.0 syntax. Summary of changes: Global renaming: test => QUnit.test() equal => assert.equal() notEqual => assert.notEqual() deepEqual=> assert.deepEqual() ok => assert.ok() module => QUnit.module() setup => beforeEach teardown => afterEach Async test migration: asyncTest => QUnit.test(function(assert) { ... }); QUnit.start() => var done = assert.async(); done(); return promise directly for async tests. BUG=467817 Committed: https://crrev.com/831563d9c72e009bdae47c174421da85faad3aa6 Cr-Commit-Position: refs/heads/master@{#320996}

Patch Set 1 : Globals renaming #

Patch Set 2 : Async test migration #

Total comments: 12

Patch Set 3 : Reviewer's feedback #

Total comments: 7

Patch Set 4 : Migrate to assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+811 lines, -807 lines) Patch
M remoting/webapp/base/js/base_event_hook_unittest.js View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M remoting/webapp/base/js/base_unittest.js View 1 2 3 13 chunks +100 lines, -98 lines 0 comments Download
M remoting/webapp/base/js/ipc_unittest.js View 1 2 3 4 chunks +44 lines, -51 lines 0 comments Download
M remoting/webapp/crd/js/apps_v2_migration_unittest.js View 1 2 3 3 chunks +28 lines, -38 lines 0 comments Download
M remoting/webapp/crd/js/desktop_viewport_unittest.js View 1 2 3 1 chunk +69 lines, -69 lines 0 comments Download
M remoting/webapp/crd/js/dns_blackhole_checker_unittest.js View 1 2 3 9 chunks +24 lines, -23 lines 0 comments Download
M remoting/webapp/crd/js/error_unittest.js View 1 2 3 2 chunks +40 lines, -45 lines 0 comments Download
M remoting/webapp/crd/js/fallback_signal_strategy_unittest.js View 1 2 3 6 chunks +129 lines, -114 lines 0 comments Download
M remoting/webapp/crd/js/host_table_entry_unittest.js View 1 2 3 7 chunks +35 lines, -30 lines 0 comments Download
M remoting/webapp/crd/js/identity_unittest.js View 1 2 3 3 chunks +25 lines, -22 lines 0 comments Download
M remoting/webapp/crd/js/l10n_unittest.js View 1 2 3 5 chunks +22 lines, -21 lines 0 comments Download
M remoting/webapp/crd/js/menu_button_unittest.js View 1 2 3 3 chunks +22 lines, -21 lines 0 comments Download
M remoting/webapp/crd/js/xhr_unittest.js View 1 2 3 2 chunks +97 lines, -95 lines 0 comments Download
M remoting/webapp/crd/js/xmpp_connection_unittest.js View 1 2 3 4 chunks +32 lines, -29 lines 0 comments Download
M remoting/webapp/crd/js/xmpp_login_handler_unittest.js View 5 chunks +8 lines, -7 lines 0 comments Download
M remoting/webapp/crd/js/xmpp_stream_parser_unittest.js View 4 chunks +12 lines, -11 lines 0 comments Download
M remoting/webapp/js_proto/qunit_proto.js View 1 2 3 1 chunk +31 lines, -40 lines 0 comments Download
M remoting/webapp/unittests/spy_promise_unittest.js View 1 2 3 2 chunks +88 lines, -88 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
kelvinp
PTAL
5 years, 9 months ago (2015-03-17 03:47:47 UTC) #3
Jamie
LGTM once my comments are addressed. https://codereview.chromium.org/1017613002/diff/20001/remoting/webapp/base/js/base_event_hook_unittest.js File remoting/webapp/base/js/base_event_hook_unittest.js (right): https://codereview.chromium.org/1017613002/diff/20001/remoting/webapp/base/js/base_event_hook_unittest.js#newcode59 remoting/webapp/base/js/base_event_hook_unittest.js:59: tearDown: function() { ...
5 years, 9 months ago (2015-03-17 17:57:16 UTC) #4
kelvinp
FYI https://codereview.chromium.org/1017613002/diff/20001/remoting/webapp/base/js/base_event_hook_unittest.js File remoting/webapp/base/js/base_event_hook_unittest.js (right): https://codereview.chromium.org/1017613002/diff/20001/remoting/webapp/base/js/base_event_hook_unittest.js#newcode59 remoting/webapp/base/js/base_event_hook_unittest.js:59: tearDown: function() { On 2015/03/17 17:57:15, Jamie wrote: ...
5 years, 9 months ago (2015-03-17 18:13:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017613002/40001
5 years, 9 months ago (2015-03-17 18:14:31 UTC) #8
John Williams
https://codereview.chromium.org/1017613002/diff/40001/remoting/webapp/base/js/base_unittest.js File remoting/webapp/base/js/base_unittest.js (right): https://codereview.chromium.org/1017613002/diff/40001/remoting/webapp/base/js/base_unittest.js#newcode153 remoting/webapp/base/js/base_unittest.js:153: }).catch(function() { Nit: If you start one line with ...
5 years, 9 months ago (2015-03-17 19:22:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017613002/60001
5 years, 9 months ago (2015-03-17 21:26:38 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-17 22:27:46 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 22:28:24 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/831563d9c72e009bdae47c174421da85faad3aa6
Cr-Commit-Position: refs/heads/master@{#320996}

Powered by Google App Engine
This is Rietveld 408576698