whesse@google.com
f9b0a27ee9
test.dart: Serve the browser test driver page from the test file HTTP server.
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//540933002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39907 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-05 11:01:26 +00:00
floitsch@google.com
46043093af
Move js library back into compiler directory.
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//538513002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39870 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-04 13:49:30 +00:00
whesse@google.com
94f0a3f3fd
Refactor testing http server in test.dart.
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//539493002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39867 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-04 12:58:19 +00:00
collinsn@google.com
2ccac8093b
Add language tests for Issue 18628.
...
As suggested by @karlklose in https://codereview.chromium.org/513563002/
comments.
Improve testing documentation.
- add a README
- add a description by example of selectors to the "./tools/test.py -h"
output
- update/add source comments
I had a hard time figuring out how to add and run the tests, mostly
because I tried to call them "*_test_1.dart" and "*_test_2.dart", but
language test files must have names of the form "*_test.dart". So, I
added a README summarizing and referencing the relevant docs.
R=brianwilkerson@google.com , karlklose@google.com , jwren@google.com
BUG=
Review URL: https://codereview.chromium.org//521773003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39822 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 18:51:25 +00:00
ricow@google.com
3331fd5366
Put selector generation for the suite_dir runs in the same place as the other selector expansion
...
R=whesse@google.com
Review URL: https://codereview.chromium.org//530363003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39796 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 08:12:39 +00:00
ricow@google.com
8327e55137
Support passing in a test suite directory through a flag to the testing scripts
...
This will allow us to setup testing that mirrors what we currently have even with the packages moved to github.
R=whesse@google.com
Review URL: https://codereview.chromium.org//527053002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39735 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-02 05:20:34 +00:00
ricow@google.com
7060865fa4
Pass --enable-async to the analyzer
...
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org//517533003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39662 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 16:45:02 +00:00
whesse@google.com
48065a1f91
Update test scripts to run under the Dart 1.6 vm.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//483353003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39443 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-21 09:30:10 +00:00
whesse@google.com
8f54a8b5bd
Update CO19 test suite to r761
...
R=kustermann@google.com
Review URL: https://codereview.chromium.org//487603003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39367 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-19 11:33:27 +00:00
whesse@google.com
1d73d2c30c
Test scripts: Detect and report error in accessing window.parent in browser_controller.
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//472883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39249 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 15:31:33 +00:00
ricow@google.com
e89bd4ab1d
Try running ie10 in a new window instead of an iframe.
...
We are seeing issues where it seems that we are getting unittest-suite-success messages out of the blue and this may be related to:
https://code.google.com/p/dart/issues/detail?id=17825
This could be the old javascript still running in the iframe posting the event.
R=whesse@google.com
Review URL: https://codereview.chromium.org//477613002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39245 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 12:36:54 +00:00
whesse@google.com
4431b50125
Browser testing: Run android content shell tests on hosts with multiple devices connected.
...
The adb_reverse_forwarder.py script in [dartium]/build/android/ needs the --all-devices option added. We will also try to upstream this flag to chromium.
This change makes the test host reinstall the ContentShell apk on the device each time the device is restarted due to timeout or periodic reset, which takes about 10 seconds, but this is simpler and more like the existing behavior with android chrome.
R=ricow@google.com
Review URL: https://codereview.chromium.org//467643002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39142 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 14:40:26 +00:00
ricow@google.com
cbe97f9ea6
Don't use io prefix in test_suite.dart
...
Review URL: https://codereview.chromium.org//456373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39072 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-11 11:09:26 +00:00
ricow@google.com
e675541f42
Use rmdir to delete pkgbuild directories on windows
...
We are seeing issues with this all the time. I validated that this works on my windows box (and our current setup does not)
It sucks that we need to us runInShell, but rmdir is not part of the normal path (i.e., "where rmdir" says it can't find it, but e.g., "where xcopy" works fine)
Review URL: https://chromiumcodereview.appspot.com//462523002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39071 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-11 10:41:25 +00:00
ricow@google.com
5886a0a997
Add the vmservice testing to the default test selector
...
Review URL: https://codereview.chromium.org//452833002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39023 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-08 08:11:52 +00:00
ricow@google.com
d7c294b4e2
Remove observatory symlink from the repository - they have unforseen issues when copying around stuff for testing.
...
Long storry short: for testing the ability to do pub get and pub build we copy in the packages and test them if they have a pubspec yaml file.
If you copy a symlink, like the one added in r38788, without -L to cp you will just get the relative symlink copied in, which will, of course, not work.
I generally think it is a bad idea to add symlinks to the repo, we have had enough issues with the ones for packages/pub
Instead, to keep the testing, add the runtime/bin/vmservice to the location of where we look for packages
R=koda@google.com
Review URL: https://codereview.chromium.org//434883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38983 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 12:59:35 +00:00
whesse@google.com
75e14b393a
Test infrastructure: Avoid restarting browser app on Android twice simultaneously.
...
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org//442673003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38898 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 14:01:23 +00:00
whesse@google.com
60a9ad6c0b
Reland r37983, "Add periodic browser restart to ContentShellOnAndroid test runtime"
...
This was reverted in r38002, because it didn't seem needed. It now looks like it will make the builder more stable.
Original CL: https://codereview.chromium.org/363323002/
TBR=ricow@google.com
Review URL: https://codereview.chromium.org//439713006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38866 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-04 16:25:47 +00:00
sra@google.com
be4ebbe937
Add --dart2js-options flag to test command
...
Example:
tools/test.py ... --dart2js-options='--dump-info' ...
will run the dart2js compilation step with --dump-info
R=ricow@google.com
Review URL: https://codereview.chromium.org//435603005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38836 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-01 17:05:41 +00:00
sigmund@google.com
769782b5d4
Fix CSP mode of the polymer compiler. Turns out that inline Javascript <script>
...
tags are also not allowed (unless you have unsafe-inline). This fixes our build
to extract code for those script tags as well.
R=blois@google.com
Review URL: https://codereview.chromium.org//424213004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38707 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-29 22:11:56 +00:00
whesse@google.com
c7d5711688
Build Tools Cleanup
...
Cleans up Python Code in Build Tools
TEST: build everything and run tests
BUG: https://code.google.com/p/dart/issues/detail?id=19592
R=ricow@google.com
Review URL: https://codereview.chromium.org//350483003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38573 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 11:47:59 +00:00
ricow@google.com
9f85c90367
Make ie11 use a fresh window again
...
Review URL: https://codereview.chromium.org//379923002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38088 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-09 16:36:54 +00:00
ricow@google.com
53899b43a9
Add file-filter flag to polymer deploy
...
Use the filter to not copy in files from .svn directories when doing deploy
Please feel free to do this in another way and throw this away - I just want us to get moving on this.
Review URL: https://chromiumcodereview.appspot.com//372983006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38077 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-09 05:21:46 +00:00
ricow@google.com
33ed771f0a
Don't use new windows for ie11
...
R=whesse@google.com
Review URL: https://codereview.chromium.org//377493002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38023 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 11:10:35 +00:00
whesse@google.com
bb59b9fa85
Revert r37983, "Add periodic browser restart to ContentShellOnAndroid test runtime. Update test status for ContentShellOnAndroid."
...
This reverts CL https://codereview.chromium.org/363323002/
We found that the flaky timeouts are real renderer crashes, and this change does not seem to help. We will instead report more data on the renderer crashes.
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//373453002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38002 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-04 09:19:08 +00:00
whesse@google.com
419bf8df29
Add periodic browser restart to ContentShellOnAndroid test runtime. Update test status for ContentShellOnAndroid.
...
BUG=dartbug.com/19127
R=kustermann@google.com
Review URL: https://codereview.chromium.org//363323002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37983 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-03 12:59:59 +00:00
whesse@google.com
edcdb5e02d
Update co19 test suite to r737
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//330633002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37305 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-13 08:15:06 +00:00
zra@google.com
e3f564fb6c
Changes for running tests on arm64 hardware.
...
R=regis@google.com
Review URL: https://codereview.chromium.org//311413002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37046 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-05 18:43:55 +00:00
sigmund@google.com
5e8288d086
Once again, seems that there are still tests failing with 59 chars. Seems that
...
is the longest we got in the bots thus far.
Review URL: https://codereview.chromium.org//300973004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36773 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 22:20:43 +00:00
nweiz@google.com
37a3ab9189
Code review changes for r36718.
...
R=kustermann@google.com
Review URL: https://codereview.chromium.org//303693006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36765 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 20:37:43 +00:00
sigmund@google.com
702986dc4b
Fix again long paths in windows - seems that we had an off by one error in this
...
check.
Review URL: https://codereview.chromium.org//307693004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36761 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 20:05:58 +00:00
sigmund@google.com
b8e0779330
Patch long names in polymer/e2e_test/... (updates test_suite.dart)
...
R=jmesserly@google.com , ricow@google.com
Review URL: https://codereview.chromium.org//305633003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36755 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 18:14:18 +00:00
nweiz@google.com
9c43b077fb
Don't run tests against pinned barback versions in third_party.
...
These packages are kept around to ensure that pub continues working
with historic barback versions, but pub's test suite handles loading
and testing against them manually. Other test suites (pkgbuild in
particular) can safely ignore them.
TBR
Review URL: https://codereview.chromium.org//306603002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36718 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 23:05:18 +00:00
ahe@google.com
c5a9af1d62
Send data with 404 response
...
The primary reason is to work around http://dartbug.com/19024 , but this is not a hack or temporary code.
R=ricow@google.com
Review URL: https://codereview.chromium.org//301683002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36675 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 13:30:49 +00:00
ricow@google.com
6da681a7f4
Add dart2js batch mode support
...
This removes an old map from runtimes to executables that is no longer needed and instead assumes a ProcessCommand that has an executable.
The added benefit of this is that it works with --use-sdk (and there are less code to maintain)
The flag to enable dart2js batch mode is temporary until we can switch the default.
When we can, this can go away and we can reuse the noBatch flag (which defaults to false)
R=whesse@google.com
Review URL: https://codereview.chromium.org//305453003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36628 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 11:03:03 +00:00
whesse@google.com
6fc4ef13a6
Fix logical error in r36299
...
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org//295603003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36301 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-19 15:01:37 +00:00
whesse@google.com
dae3c92848
test.dart: Handle checkout paths containing spaces.
...
Change TestUtils to correctly convert from a URI to a file path, and
simplify the setting of the path to the Dart checkout.
R=kustermann@google.com
Review URL: https://codereview.chromium.org//282173004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36299 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-19 14:30:26 +00:00
efortuna@google.com
cad8fc591c
Add additional case where we use the use-dart2js-libraries flag in test.dart.
...
BUG=
R=whesse@google.com
Review URL: https://codereview.chromium.org//283223003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36224 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-15 15:27:19 +00:00
efortuna@google.com
3a51e6bf88
Update test.dart to tell the analyzer to use the --use-dart2js-libraries flag when analyzing dart2js libs.
...
BUG=
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org//286883004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36189 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 20:34:43 +00:00
zra@google.com
2146126308
Fix bug on arm64.
...
Also increases test timeout to match simarm and simmips.
R=regis@google.com
Review URL: https://codereview.chromium.org//283833005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36175 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 16:56:12 +00:00
ricow@google.com
51df890220
Add missing file from revert in revision 36165
...
Review URL: https://codereview.chromium.org//272543007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36167 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 13:53:01 +00:00
ricow@google.com
d4c3fb063b
Revert revisions 36163 and 36162
...
Review URL: https://codereview.chromium.org//288703003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36165 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 13:41:58 +00:00
ricow@google.com
4872c41303
Cache output of dart2js compilations that went wrong on disk.
...
This change adds a out.js.cached_output (or equivalent) for compilations that fails.
There are two cases where this helps:
Commits where the sdk does not change and but we would normally recompile since we don't have the dart2js output
Runs on the buildbot where we do several runs on different runtimes in serial
Additionally, this introduces a check on multitest files so we don't copy the file if the content is already correct. The reason for this is that a bunch of tests depend on the copied import which will then trigger a recompilation.
This will help in the same two cases as above.
This change also changes dart2js to always output the deps file, otherwise we have no way of knowing if we can reuse the output.
R=floitsch@google.com , kustermann@google.com , whesse@google.com
Review URL: https://codereview.chromium.org//256743009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36162 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 12:54:01 +00:00
ricow@google.com
6be37386e0
Add mobile safari simulator support in the testing scripts
...
R=whesse@google.com
Review URL: https://codereview.chromium.org//262763005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35626 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-01 11:32:08 +00:00
whesse@google.com
89c4738b70
Fix long co19 path names in new directory.
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//266523002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35567 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-30 09:41:13 +00:00
ricow@google.com
9a9ca47034
Add clear_browser_cache flag to test.dart
...
This can be used by any browser implementation to flush browser specific caches if set
clear_safari_cache is left in as a synonym for now, I will remove if after I update the bots
Review URL: https://chromiumcodereview.appspot.com//252653007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35477 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-28 09:38:31 +00:00
ricow@google.com
6886c3f350
Add default selector exclution flag to test.dart
...
This can be used like this:
tools/test.py -mrelease --exclude-suite=co19,pkg
to run the default selector tests but not run pkg and co19 tests.
Why am I doing this:
We want to keep broad testing on developer machines, but want to allow testing resources to have a better and more logic distribution on the bots, e.g., not run pkg tests on the vm bots.
R=whesse@google.com
Review URL: https://codereview.chromium.org//256703003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35424 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 14:42:33 +00:00
whesse@google.com
9bb09add29
Reduce memory usage of test.dart: canonicalize Set<Expectation>
...
BUG=dartbug.com/18084
R=kustermann@google.com
Review URL: https://codereview.chromium.org//258523006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35375 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-24 15:42:17 +00:00
whesse@google.com
afbf758380
Reduce test.dart memory usage
...
BUG=dartbug.com/18084
R=ricow@google.com
Review URL: https://codereview.chromium.org//247223009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35365 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-24 11:09:49 +00:00
whesse@google.com
bede5d4373
Reduce test.dart memory usage.
...
BUG=dartbug.com/18084
R=ricow@google.com
Review URL: https://codereview.chromium.org//234673003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35313 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-23 15:07:47 +00:00