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

Issue 16831021: Convert asynchronous closure test in cr.ui framework to a browser test. (Closed)

Created:
7 years, 6 months ago by kevers
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Convert asynchronous closure test in cr.ui framework to a browser test. BUG=249104 TEST=WebUIResourceBrowserTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207929

Patch Set 1 #

Patch Set 2 : Remove old test. #

Patch Set 3 : Remove assertNotThrows and tweak array comparison. #

Total comments: 16

Patch Set 4 : Remove global variable runningAsynchronousTest. #

Total comments: 8

Patch Set 5 : Use closure to hide variables used in runTests. #

Total comments: 9

Patch Set 6 : Fix nits. #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : Merge with trunk. #

Patch Set 9 : Merge trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -178 lines) Patch
A + chrome/test/data/webui/parse_html_subset_test.html View 1 2 3 3 chunks +4 lines, -18 lines 0 comments Download
M chrome/test/data/webui/webui_resource_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/test/data/webui/webui_resource_test.js View 1 2 3 4 5 6 7 8 1 chunk +70 lines, -26 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/webui/resources/js/cr/link_controller_test.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D ui/webui/resources/js/parse_html_subset_test.html View 1 1 chunk +0 lines, -133 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kevers
Erik and Dan, Can you please have a look at this CL.
7 years, 6 months ago (2013-06-20 14:37:09 UTC) #1
arv (Not doing code reviews)
Lets take a cue from modern testing frameworks like Mocha and look at length of ...
7 years, 6 months ago (2013-06-20 15:46:48 UTC) #2
arv (Not doing code reviews)
https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/parse_html_subset_test.html File chrome/test/data/webui/parse_html_subset_test.html (right): https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/parse_html_subset_test.html#newcode104 chrome/test/data/webui/parse_html_subset_test.html:104: function testOnError() { function testOnError(done) { https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/parse_html_subset_test.html#newcode107 chrome/test/data/webui/parse_html_subset_test.html:107: runningAsynchronousTest ...
7 years, 6 months ago (2013-06-20 15:49:38 UTC) #3
kevers
https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/parse_html_subset_test.html File chrome/test/data/webui/parse_html_subset_test.html (right): https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/parse_html_subset_test.html#newcode104 chrome/test/data/webui/parse_html_subset_test.html:104: function testOnError() { On 2013/06/20 15:49:38, arv wrote: > ...
7 years, 6 months ago (2013-06-20 17:34:18 UTC) #4
arv (Not doing code reviews)
https://chromiumcodereview.appspot.com/16831021/diff/11001/chrome/test/data/webui/webui_resource_test.js File chrome/test/data/webui/webui_resource_test.js (right): https://chromiumcodereview.appspot.com/16831021/diff/11001/chrome/test/data/webui/webui_resource_test.js#newcode7 chrome/test/data/webui/webui_resource_test.js:7: * @type {Array.<strring>} List of function names for tests ...
7 years, 6 months ago (2013-06-20 17:45:15 UTC) #5
kevers
https://chromiumcodereview.appspot.com/16831021/diff/11001/chrome/test/data/webui/webui_resource_test.js File chrome/test/data/webui/webui_resource_test.js (right): https://chromiumcodereview.appspot.com/16831021/diff/11001/chrome/test/data/webui/webui_resource_test.js#newcode7 chrome/test/data/webui/webui_resource_test.js:7: * @type {Array.<strring>} List of function names for tests ...
7 years, 6 months ago (2013-06-20 18:22:12 UTC) #6
Dan Beam
https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://chromiumcodereview.appspot.com/16831021/diff/5001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode49 chrome/test/data/webui/webui_resource_browsertest.cc:49: } nit: use a do { } while () ...
7 years, 6 months ago (2013-06-20 18:31:46 UTC) #7
arv (Not doing code reviews)
LGTM with nits https://chromiumcodereview.appspot.com/16831021/diff/15001/chrome/test/data/webui/webui_resource_test.js File chrome/test/data/webui/webui_resource_test.js (right): https://chromiumcodereview.appspot.com/16831021/diff/15001/chrome/test/data/webui/webui_resource_test.js#newcode104 chrome/test/data/webui/webui_resource_test.js:104: * @type {Array.<strring>} List of function ...
7 years, 6 months ago (2013-06-20 18:33:02 UTC) #8
kevers
https://chromiumcodereview.appspot.com/16831021/diff/15001/chrome/test/data/webui/webui_resource_test.js File chrome/test/data/webui/webui_resource_test.js (right): https://chromiumcodereview.appspot.com/16831021/diff/15001/chrome/test/data/webui/webui_resource_test.js#newcode104 chrome/test/data/webui/webui_resource_test.js:104: * @type {Array.<strring>} List of function names for tests ...
7 years, 6 months ago (2013-06-20 18:52:12 UTC) #9
Dan Beam
lgtm https://chromiumcodereview.appspot.com/16831021/diff/22007/chrome/test/data/webui/webui_resource_test.js File chrome/test/data/webui/webui_resource_test.js (right): https://chromiumcodereview.appspot.com/16831021/diff/22007/chrome/test/data/webui/webui_resource_test.js#newcode104 chrome/test/data/webui/webui_resource_test.js:104: * @type {Array.<string>} List of function names for ...
7 years, 6 months ago (2013-06-20 21:42:14 UTC) #10
kevers
+sky for OWNERS on content/public/test.
7 years, 6 months ago (2013-06-20 21:57:00 UTC) #11
sky
https://chromiumcodereview.appspot.com/16831021/diff/22007/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://chromiumcodereview.appspot.com/16831021/diff/22007/content/public/test/browser_test_utils.cc#newcode509 content/public/test/browser_test_utils.cc:509: message_queue_.pop(); Should the pop happen regardless of message being ...
7 years, 6 months ago (2013-06-20 23:26:26 UTC) #12
kevers
https://chromiumcodereview.appspot.com/16831021/diff/22007/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://chromiumcodereview.appspot.com/16831021/diff/22007/content/public/test/browser_test_utils.cc#newcode509 content/public/test/browser_test_utils.cc:509: message_queue_.pop(); On 2013/06/20 23:26:26, sky wrote: > Should the ...
7 years, 6 months ago (2013-06-21 13:45:39 UTC) #13
sky
LGTM
7 years, 6 months ago (2013-06-21 15:26:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/16831021/33001
7 years, 6 months ago (2013-06-21 16:56:16 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 22:03:53 UTC) #16
Message was sent while issue was closed.
Change committed as 207929

Powered by Google App Engine
This is Rietveld 408576698