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

Issue 11339039: Add additional test harness error handling to test_controller. (Closed)

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

Description

Add additional test harness error handling to test_controller. We are seeing messed up output on firefox and the existing eventhandler listinging for error is not sufficient for getting full error output on firefox. Committed: https://code.google.com/p/dart/source/detail?r=14253

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M pkg/unittest/test_controller.js View 1 2 1 chunk +11 lines, -0 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
ricow1
8 years, 1 month ago (2012-10-30 09:04:53 UTC) #1
Mads Ager (google)
lgtm However, could you loop in the authors of this code. I don't know the ...
8 years, 1 month ago (2012-10-30 09:06:47 UTC) #2
ricow1
Adding Seattle people
8 years, 1 month ago (2012-10-30 09:08:30 UTC) #3
ricow1
On 2012/10/30 09:08:30, ricow1 wrote: > Adding Seattle people Added console clearing on every invocation ...
8 years, 1 month ago (2012-10-30 09:37:39 UTC) #4
ahe
LGTM https://codereview.chromium.org/11339039/diff/4001/pkg/unittest/test_controller.js File pkg/unittest/test_controller.js (right): https://codereview.chromium.org/11339039/diff/4001/pkg/unittest/test_controller.js#newcode12 pkg/unittest/test_controller.js:12: console.clear(); Unfortunately, I only think this works in ...
8 years, 1 month ago (2012-10-30 09:48:51 UTC) #5
ricow1
On 2012/10/30 09:48:51, ahe wrote: > LGTM > > https://codereview.chromium.org/11339039/diff/4001/pkg/unittest/test_controller.js > File pkg/unittest/test_controller.js (right): > ...
8 years, 1 month ago (2012-10-30 10:01:55 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/11339039/diff/6001/pkg/unittest/test_controller.js File pkg/unittest/test_controller.js (right): https://codereview.chromium.org/11339039/diff/6001/pkg/unittest/test_controller.js#newcode16 pkg/unittest/test_controller.js:16: window.onerror = function (message, url, lineNumber) { could this ...
8 years, 1 month ago (2012-10-30 17:36:52 UTC) #7
ricow1
Siggi, thanks for the input, I still feel that we should make sure to bring ...
8 years, 1 month ago (2012-10-31 10:17:53 UTC) #8
Siggi Cherem (dart-lang)
8 years, 1 month ago (2012-10-31 15:57:00 UTC) #9
On 2012/10/31 10:17:53, ricow1 wrote:
> Siggi, thanks for the input, I still feel that we should make sure to bring
all
> possible errors that forward so that we can track down flaky issues.
> 
>
https://codereview.chromium.org/11339039/diff/6001/pkg/unittest/test_controll...
> File pkg/unittest/test_controller.js (right):
> 
>
https://codereview.chromium.org/11339039/diff/6001/pkg/unittest/test_controll...
> pkg/unittest/test_controller.js:16: window.onerror = function (message, url,
> lineNumber) {
> On 2012/10/30 17:36:53, Siggi Cherem (dart-lang) wrote:
> > could this be problematic in non-firefox browsers?
> > 
> > I feel some tension between this line and line 82 below. Should we have some
> > dynamic test to do one or the other based on the runtime browser, rather
than
> > try to do both always?
> This is not firefox only:
> http://www.w3.org/wiki/DOM/window.onerror
> There seems to be some issues with some browsers where all errors will not be
> caught by this. Always catching all errors is important in debugging issues
with
> out surrounding infrastructure (I would rather have the error twice than not
at
> all)

I used to think that the signature of the callback (e.g. 1 vs 3 arguments) was
different on FF than Chrome, that was the source of my concern... I was just
playing around with it and it seems to work in both, good to know :)

Thanks Rico!

Powered by Google App Engine
This is Rietveld 408576698