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

Issue 177333004: Change tests to use test.py's test_controller.js, cleanup in browser_controller (Closed)

Created:
6 years, 9 months ago by kustermann
Modified:
6 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Change tests to use test.py's test_controller.js, cleanup in browser_controller This change makes all remaining tests use test.py's test_controller.js: We have our own way of testing using test.py and that might change any time. It's therefore not wise to rely on functionality in the unittest framework. If we kept test_controller.js in the unittest package, we'd need to make a breaking change whenever we change the behavior of test_controller.js. So this file was forked into tools/testing/dart/test_controller.js. After this, all our tests will use tools/testing/dart/test_controller.js. It is therefore no longer necessary for the browser_controller to support the old mechanism of posting back results. By removing this legacy code, we can ensure, that the driving page of browser_controller will only react on valid messages which were ment for it. Context: Some tests (e.g. dromaeo) might use postMessage internally, maybe even for testing that postMessage is working. But the driving window should only react on valid messages ment for it, ignoring any other messages. R=blois@google.com, efortuna@google.com, ricow@google.com, whesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=33365

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -34 lines) Patch
M dart/pkg/polymer/test/bind_mdv_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/pkg/template_binding/test/custom_element_bindings_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/pkg/third_party/angular_tests/browser_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/samples/polymer_intl/test/polymer_intl_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/samples/searchable_list/test/demo_app_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/samples/third_party/todomvc/test/listorder_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/samples/third_party/todomvc/test/mainpage_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/samples/third_party/todomvc/test/markdone_shadow_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/samples/third_party/todomvc/test/markdone_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/attribute_changed_callback_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/constructor_calls_created_synchronously_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/created_callback_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/document_register_basic_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/document_register_type_extensions_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/entered_left_view_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/js_custom_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/mirrors_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom/template_wrappers_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/html/custom_elements_test.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/third_party/pkg/js/test/js/browser_tests.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/third_party/pkg/js/test/js_wrapping/browser_tests.html View 1 chunk +1 line, -1 line 0 comments Download
M dart/tools/testing/dart/browser_controller.dart View 1 chunk +16 lines, -13 lines 3 comments Download

Messages

Total messages: 7 (0 generated)
kustermann
@Emily/Pete: I'm not sure if these tests rely on any specific functionality in unittest/test_controller.js. See ...
6 years, 9 months ago (2014-03-05 10:43:27 UTC) #1
ricow1
Browser controller changes: LGTM I would like input from Pete/Emily on the rest https://codereview.chromium.org/177333004/diff/1/dart/tools/testing/dart/browser_controller.dart File ...
6 years, 9 months ago (2014-03-05 11:45:53 UTC) #2
Bill Hesse
lgtm
6 years, 9 months ago (2014-03-05 13:19:51 UTC) #3
blois
On 2014/03/05 13:19:51, Bill Hesse wrote: > lgtm lgtm as well. It may also be ...
6 years, 9 months ago (2014-03-05 16:37:32 UTC) #4
kustermann
On 2014/03/05 16:37:32, blois wrote: > On 2014/03/05 13:19:51, Bill Hesse wrote: > > lgtm ...
6 years, 9 months ago (2014-03-05 17:39:59 UTC) #5
Emily Fortuna
lgtm. Glad to see this change; this will make things much nicer. I was previously ...
6 years, 9 months ago (2014-03-06 01:07:04 UTC) #6
kustermann
6 years, 9 months ago (2014-03-06 10:38:09 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 manually as r33365 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698