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

Issue 8469016: Adding in-browser correctness testing via selenium. (Closed)

Created:
9 years, 1 month ago by Emily Fortuna
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Adding in-browser correctness testing via selenium. Do not, I repeat, DO NOT enable these to run by default on the buildbot yet (Currently they do not run by default). I am checking this in in its raw state so that my fellow frog developers can start making fixes to frog for running in other browsers. You can run these test by running: Install WebDriver stuff by following these instructions: http://code.google.com/p/selenium/wiki/PythonBindings Then start the server: java -jar selenium-server-standalone-2.11.0.jar -browserSessionReuse ../tools/test.py --component=webdriver --report --timeout=10 --progress=color --mode=release language Frog generates code that fails in Firefox, but passes in Chrome (for example). We need to fix this eventually, but it shouldn't cause our entire tree to turn red. Note also that to run selenium, you will need to install the selenium python library, and ChromeDriver. Committed: https://code.google.com/p/dart/source/detail?r=1436

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 12

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 3

Patch Set 16 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -36 lines) Patch
M frog/frogsh View 1 2 3 4 5 6 7 8 9 10 11 12 13 22 chunks +38 lines, -27 lines 0 comments Download
M frog/gen.dart View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M frog/var_member.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M tests/language/language.status View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M tools/test.py View 1 2 3 4 5 6 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M tools/testing/architecture.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +35 lines, -0 lines 1 comment Download
A tools/testing/run_selenium.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +57 lines, -0 lines 1 comment Download
M tools/testing/test_case.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/test_configuration.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Emily Fortuna
9 years, 1 month ago (2011-11-10 22:52:25 UTC) #1
Siggi Cherem (dart-lang)
very cool stuff :)! http://codereview.chromium.org/8469016/diff/5001/frog/gen.dart File frog/gen.dart (right): http://codereview.chromium.org/8469016/diff/5001/frog/gen.dart#newcode335 frog/gen.dart:335: writer.writeln(endOfLine); (nit): for this short ...
9 years, 1 month ago (2011-11-10 23:04:37 UTC) #2
Emily Fortuna
Take 2!
9 years, 1 month ago (2011-11-10 23:49:37 UTC) #3
Jennifer Messerly
lgtm http://codereview.chromium.org/8469016/diff/7010/frog/gen.dart File frog/gen.dart (right): http://codereview.chromium.org/8469016/diff/7010/frog/gen.dart#newcode330 frog/gen.dart:330: // trailing comma on the last element in ...
9 years, 1 month ago (2011-11-10 23:57:08 UTC) #4
Siggi Cherem (dart-lang)
http://codereview.chromium.org/8469016/diff/7010/tools/testing/architecture.py File tools/testing/architecture.py (right): http://codereview.chromium.org/8469016/diff/7010/tools/testing/architecture.py#newcode411 tools/testing/architecture.py:411: 'frogsh')) a more compact way to write the 2 ...
9 years, 1 month ago (2011-11-11 00:06:02 UTC) #5
Emily Fortuna
Okay, this time, for real it should be ready! http://codereview.chromium.org/8469016/diff/7010/frog/gen.dart File frog/gen.dart (right): http://codereview.chromium.org/8469016/diff/7010/frog/gen.dart#newcode330 frog/gen.dart:330: ...
9 years, 1 month ago (2011-11-11 00:58:41 UTC) #6
Jennifer Messerly
http://codereview.chromium.org/8469016/diff/7010/tools/testing/architecture.py File tools/testing/architecture.py (right): http://codereview.chromium.org/8469016/diff/7010/tools/testing/architecture.py#newcode410 tools/testing/architecture.py:410: frog = os.path.abspath(os.path.join(build_root, 'frog', 'bin', On 2011/11/11 00:58:41, Emily ...
9 years, 1 month ago (2011-11-11 01:02:32 UTC) #7
Siggi Cherem (dart-lang)
lgtm with the changes below. http://codereview.chromium.org/8469016/diff/40/tools/testing/architecture.py File tools/testing/architecture.py (right): http://codereview.chromium.org/8469016/diff/40/tools/testing/architecture.py#newcode402 tools/testing/architecture.py:402: super(WebDriverArchiecture, self).__init__(root_path, arch, mode, ...
9 years, 1 month ago (2011-11-11 01:06:01 UTC) #8
Siggi Cherem (dart-lang)
+ngeoffray Feel free to proceed - I'm adding Nicolas just to make sure I didn't ...
9 years, 1 month ago (2011-11-11 01:08:25 UTC) #9
ngeoffray
9 years, 1 month ago (2011-11-11 09:20:50 UTC) #10
Very nice. I'm looking forward to using it.

http://codereview.chromium.org/8469016/diff/6021/tools/testing/architecture.py
File tools/testing/architecture.py (right):

http://codereview.chromium.org/8469016/diff/6021/tools/testing/architecture.p...
tools/testing/architecture.py:409: frog =
os.path.abspath(utils.GetDartRunner(self.mode, self.arch, 'frogsh'))
Could that be frog instead? frogsh requires node, and people not working on frog
may not have it. If you turn that into 'frog', you'll get more people able to
test webdriver :)

BTW, that's what I did for leg.

http://codereview.chromium.org/8469016/diff/6021/tools/testing/run_selenium.py
File tools/testing/run_selenium.py (right):

http://codereview.chromium.org/8469016/diff/6021/tools/testing/run_selenium.p...
tools/testing/run_selenium.py:30: # Note: you need ChromeDriver in your path to
run chrome, in addition to
nit: chrome -> Chrome

Powered by Google App Engine
This is Rietveld 408576698