efortuna@google.com
c6179a50c0
Revert "Change the location of the output directory" plus one other fix.
...
BUG=
Review URL: https://codereview.chromium.org//12225109
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18295 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-09 02:07:19 +00:00
sigmund@google.com
376c46005e
Move test_controller.js inside unitest/lib so it can be used in external tests
...
too.
Review URL: https://codereview.chromium.org//12217045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18184 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 19:33:55 +00:00
kustermann@google.com
3396dc77a9
Change the location of the output directory of generated tests to be inside build directory, but not relative to the dart root.
...
This is causing issues on dartium builders where we actually only run because there is a build/Release (and out/Release or xcodebuild/Release for mac/linux) on the bot that has been created inside src/dart.
Also, fix the http server in the testing script to serve files from the output directory - otherwise the tests will not be accessible if an alternative build directory is used.
Review URL: https://codereview.chromium.org//12183022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18176 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 16:38:09 +00:00
efortuna@google.com
4622dc3e76
Make browser tests all run from a server instead of the local filesystem.
...
BUG=
Review URL: https://codereview.chromium.org//11810004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17007 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:11:07 +00:00
efortuna@google.com
274ac61643
Reverting everything because package root + dartium is causing serious problems.
...
DART_PACKAGE_ROOT environment variable is set for drt, but not dartium, and is location is problematic with respect to serving the files in the dartium checkout.
Review URL: https://codereview.chromium.org//11800002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16678 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 05:20:06 +00:00
efortuna@google.com
1d3b0c4b3b
Add cross-origin test with credentials. I modified the test framework slightly
...
as well to Enable Cross-origin requests while testing from local files.
BUG=
Review URL: https://codereview.chromium.org//11641005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16671 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 02:43:31 +00:00
rnystrom@google.com
c5c575290e
Don't use relativeTo() since it barfs on some arguments.
...
Review URL: https://codereview.chromium.org//11645057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16411 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 01:06:48 +00:00
rnystrom@google.com
bfb9f427ee
Convert unittest to use "package:" imports.
...
Use consistent path to "unittest" in browser test wrapper.
Review URL: https://codereview.chromium.org//11638049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16408 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 23:51:22 +00:00
rnystrom@google.com
a76646fafa
Revert "Convert unittest to use "package:" imports."
...
This reverts commit 6f77df43a437af7076ee154bc06ade261d6e32a0.
BUG=
Review URL: https://codereview.chromium.org//11648035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16407 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 22:41:02 +00:00
rnystrom@google.com
58c56eacd1
Convert unittest to use "package:" imports.
...
Review URL: https://codereview.chromium.org//11644055
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16403 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 21:53:37 +00:00
sigmund@google.com
14de8ec666
Avoid timeouts when DRT fails to find a file.
...
Review URL: https://codereview.chromium.org//11565018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16177 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 19:15:00 +00:00
kustermann@google.com
62c83a4443
Moved the testing scripts to the new import/library/part syntax
...
Review URL: https://codereview.chromium.org//11575028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16163 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 14:19:01 +00:00
gram@google.com
981c4b11df
Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
...
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +00:00
gram@google.com
353f4c4c8a
Update test utils to generate wrappers with new library syntax and handle
...
tests with new library syntax.
Review URL: https://codereview.chromium.org//11358045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14437 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 21:31:27 +00:00
ager@google.com
0fed52bd2d
Only start http server for browser tests.
...
This reduces the annoyance of the fixed port number used and allows
non-browser test configurations to be run in parallel (or one browser
configuration in parallel with a bunch of non-browser configurations).
R=ahe@google.com ,ricow@google.com
BUG=
Review URL: https://codereview.chromium.org//11360028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14403 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 12:58:44 +00:00
efortuna@google.com
9163dfe93c
revert 1204. Will investigate when I get a chance.
...
TBR=rnystrom
Review URL: https://codereview.chromium.org//10928216
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12413 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-15 01:21:41 +00:00
rnystrom@google.com
383488ec4f
Update unittest to new package layout.
...
Review URL: https://codereview.chromium.org//10917275
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12404 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 21:12:17 +00:00
rnystrom@google.com
659a57df3e
Revert "Make unittest follow the new package layout."
...
This reverts commit 38f7d16f373832a7bf889192af7845cb602aec01.
Review URL: https://codereview.chromium.org//10911318
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12400 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 19:43:10 +00:00
rnystrom@google.com
2ba81033a6
Make unittest follow the new package layout.
...
Review URL: https://codereview.chromium.org//10918240
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12396 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 18:22:24 +00:00
dgrove@google.com
c265902bea
Move unittest from lib to pkg.
...
Review URL: https://chromiumcodereview.appspot.com//10836241
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10685 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:36:59 +00:00
gram@google.com
04addcf452
Fix break.
...
Review URL: https://chromiumcodereview.appspot.com//10834195
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10317 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 22:57:17 +00:00
gram@google.com
8532a6349d
Clean up the test wrapper code so that it does not use reportTestError, and made that private.
...
The HTML configs still need a way of reporting errors so I added a method to Config which can be used for this purpose. This seems a bit cleaner and more flexible, as configs can now override this.
Review URL: https://chromiumcodereview.appspot.com//10854013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10311 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 22:00:59 +00:00
vsm@google.com
6c344183fc
Initial tests for JS interop
...
BUG=625
Review URL: https://chromiumcodereview.appspot.com//10696092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9384 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 07:45:41 +00:00
sigmund@google.com
25a24b69a5
Adds support for layout tests.
...
Review URL: https://chromiumcodereview.appspot.com//10683009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9207 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 17:05:10 +00:00
whesse@google.com
5673b2b301
Add Path library and change test scripts, combined change.
...
Use Path for the filename and TestInformation.filename throughout test scripts.
Change test_suite.dart to use Path class.
Fix bug in join
Address comments.
Address comments
Address comments on Path library.
Add path library to dart:io.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10584014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9203 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 15:39:28 +00:00
ahe@google.com
968159dba8
Revert "Added the ability to filter which tests are run by name, using a --filter argument passed to test.dart."
...
Review URL: https://chromiumcodereview.appspot.com//10632017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9018 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 09:14:54 +00:00
gram@google.com
2436664bb5
Added the ability to filter which tests are run by name, using a --filter argument passed to test.dart.
...
Review URL: https://chromiumcodereview.appspot.com//10627008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9006 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 22:03:55 +00:00
sigmund@google.com
82f6756e91
Listen for on.error events in test_controller.js
...
Review URL: https://chromiumcodereview.appspot.com//10627004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8983 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 15:32:40 +00:00
kasperl@google.com
52990c6f01
Try to fix IE issues.
...
Add <meta> tag to our generated browser test cases to make sure IE does not use IE7 compatibility mode when loading these from the intranet.
R=ngeoffray@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10542050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8380 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 08:17:53 +00:00
ahe@google.com
ec723484c6
Handle native paths in test wrappers.
...
Review URL: https://chromiumcodereview.appspot.com//10447060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8041 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:15:28 +00:00
sigmund@google.com
cb8056e881
(second try) unittest steps 3, 4: removes TestFramework.dart
...
Review URL: https://chromiumcodereview.appspot.com//10222013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6980 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 22:31:04 +00:00
sigmund@google.com
a7e7679286
Revert "unittest step 3 and 4: remove TestFramework.dart, make test.dart use"
...
Review URL: https://chromiumcodereview.appspot.com//10226008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6968 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 19:42:26 +00:00
sigmund@google.com
edac4ecb27
unittest step 3 and 4: remove TestFramework.dart, make test.dart use
...
unittest.dart, so tests written with it will work both in the vm and browsers.
This involved a few changes:
- removing uses of TestFramework, use unittest instead (in test.dart and some
isolate tests)
- making test.dart use unittest and html_config to wrap standalone tests as
browser tests. This is done for tests written with or without unittest
- unittest: trap errors at the top-level, so we can detect errors during setup,
but also to detect normal failures in tests that are wrapped by test.dart.
Review URL: https://chromiumcodereview.appspot.com//10153005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6963 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 18:37:23 +00:00
sra@google.com
416af198eb
Switch IndexedDB1Test to use addEventListener.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10008036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6258 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 01:28:11 +00:00
sra@google.com
36cce3e793
Revert "First indexeddb test"
...
This reverts commit 75eb74d0ae44d8716a33a33d9fda122d8c92329e.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10008031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6256 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 23:33:10 +00:00
sra@google.com
baefe79b75
First indexeddb test
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10008012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6252 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 23:01:43 +00:00
efortuna@google.com
c4aea9a397
Add doctype to test html boilerplate so that IE 9 does not go into quirks mode.
...
Review URL: https://chromiumcodereview.appspot.com//9271083
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3663 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 19:20:49 +00:00
whesse@google.com
bb7ec07431
Add client/tests/client web tests to the test.dart test script.
...
BUG=
TEST=tools/test.dart --component=dartium,chromium,frogium client
Review URL: http://codereview.chromium.org//9036009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2939 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 11:55:08 +00:00
whesse@google.com
69353d663c
Implement chromium component.
...
BUG=
TEST=tools/test.dart --component=chromium
Review URL: http://codereview.chromium.org//8995009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2695 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 13:56:12 +00:00
whesse@google.com
7f1edc16cb
Enable Dartium tests in tools/test.dart.
...
BUG=
TEST=tools/test.dart
Review URL: http://codereview.chromium.org//8889016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2312 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 15:23:09 +00:00