Commit Graph

8 Commits

Author SHA1 Message Date
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 d4c7f79ef7 Added support for running an HTTP server during the test and being able to serve up static files. Later this will be extended to being able to write tests on both ends of the connection, but this is a first step.
Review URL: https://codereview.chromium.org//10966020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12674 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:46:01 +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
rnystrom@google.com e11b3b82fe Make args package follow new layout.
Review URL: https://codereview.chromium.org//10919249

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12284 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 21:31:42 +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