|
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}
Total comments: 12
Total comments: 7
|
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
|
Total messages: 15 (7 generated)
|