Commit Graph

10 Commits

Author SHA1 Message Date
sgjesse@google.com 2ef54d314a Add the ability to change the working directory
Directory.current have been changed from a factory constructor to a
getter and setter. The getter returns a Direcotry object holding the
current working directory. The setter changes the current working
directory of the Dart process.

R=whesse@google.com

BUG=https://code.google.com/p/dart/issues/detail?id=6316, https://code.google.com/p/dart/issues/detail?id=8893

Review URL: https://codereview.chromium.org//13896034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22116 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 12:43:53 +00:00
gram@google.com eccaec8f3b Updated testrunner:
- works with latest SDK
- understand and works with pub and pubspecs
- tested on Linux, Mac and Windows
- has its own tests

There is still as issue on Windows, where using Process.start to run a .bat file is not terminating until the timeout kills the cmd.exe process. My suspicion is that this is am issue with Process, not testrunner. I have contacted whesse et al about this.

Review URL: https://codereview.chromium.org//14247033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21969 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:39:50 +00:00
sgjesse@google.com 488b016a2f Merge IO v2 branch to bleeding edge
R=ager@google.com, ajohnsen@google.com, whesse@google.com

BUG=

Review URL: https://codereview.chromium.org//12316036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18820 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-21 11:58:11 +00:00
kasperl@google.com 5fb2069f5c Get rid of more () in getter definitions.
R=antonm@google.com
BUG=

Review URL: https://codereview.chromium.org//11228053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13952 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 11:59:22 +00:00
gram@google.com 29611d7d98 Added ability to have custom test HTTP server handlers in the test directories.
Review URL: https://codereview.chromium.org//11093033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13490 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 19:48:18 +00:00
gram@google.com 2602f8c28e Change imports etc to new syntax.
Fix issues wutrh handling console messages from DRT when using --list-tests and --list-groups.
Review URL: https://codereview.chromium.org//11033042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13327 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 22:13:12 +00:00
gram@google.com 2eff2baa75 New testrunner that runs the test pipleine in an isolate.
Review URL: https://codereview.chromium.org//10977069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13155 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 00:02:04 +00:00
gram@google.com eeef25322f Support for pixel layout tests.
Review URL: https://codereview.chromium.org//10909240

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12655 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 20:08:35 +00:00
gram@google.com a1eecbbc65 Added support for layout render tests. These use expected values for the text render output from DumpRenderTree. When running a test in DRT the testrunner will see if there is a file with a .render extension in the same directory as the test file and with the same base file name. If so it will do additional checks of the rendered layout.
Here is a simple example test:

#library('sample');
#import('dart:html');
#import('pkg:unittest/unittest.dart');

main() {
  group('foo', () {
    test('test 1', () {
      document.body.nodes.add(new Element.html("<p>Test 1</p>"));
    });
    test('test 2', () {
      document.body.nodes.add(new Element.html("<p>Test 2</p>"));
    });
  });
}

And a sample matching .render file:

[foo test 1]
RenderBlock {P} at (0,0) size 284x20
  RenderText {#text} at (0,0) size 38x19
    text run at (0,0) width 38: "Test 1"
[foo test 2]
RenderBlock {P} at (0,0) size 284x20
  RenderText {#text} at (0,0) size 38x19
    text run at (0,0) width 38: "Test 2"

Note that the render content is only the content inside the <body> element, not including the body element itself.

testrunner can generate render files itself if you use the --generate-renders flag.

Also in this change - rename Configuration.log to trace, to avoid clash with the math log() function.
Review URL: https://chromiumcodereview.appspot.com//10914049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11994 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 21:51:24 +00:00
gram@google.com ba92707967 Testrunner for 3rd parties.
Review URL: https://chromiumcodereview.appspot.com//10897016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11648 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 20:12:24 +00:00