Commit Graph

1421 Commits

Author SHA1 Message Date
alanknight@google.com e7b27a813d Oops, forgot to fix status file when renaming tests
Review URL: https://chromiumcodereview.appspot.com//10913142

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12068 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 21:18:30 +00:00
ngeoffray@google.com 13dd7022b5 num implements Comparable and Hashable.
Review URL: https://chromiumcodereview.appspot.com//10916172

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12037 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 14:20:36 +00:00
ngeoffray@google.com 94f1c2ed10 Change our 'is int' check to use Math.floor instead of a smi check.
Review URL: https://chromiumcodereview.appspot.com//10912147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12018 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:05:34 +00:00
ngeoffray@google.com 9d2f296c5a Fix status files for browser checked mode.
Review URL: https://chromiumcodereview.appspot.com//10905139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11998 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 22:31:27 +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
ngeoffray@google.com b5fe256172 Improvements for checked mode: check when intializing fields, and when assigning to fields.
Review URL: https://chromiumcodereview.appspot.com//10910092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11962 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:03:25 +00:00
ngeoffray@google.com fce3e2ec01 Fix checked mode on browser.
Review URL: https://chromiumcodereview.appspot.com//10912109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11933 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 10:48:22 +00:00
alanknight@google.com 85e5a21b87 dartc can't compile dart:io, fix status to avoid using it
Review URL: https://chromiumcodereview.appspot.com//10911112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11904 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 21:14:52 +00:00
alanknight@google.com efa7a80f03 Async initialization for DateFormat
Review URL: https://chromiumcodereview.appspot.com//10917069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11901 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 19:54:01 +00:00
ahe@google.com 233c007636 Update status file for dart2js checked mode.
We didn't use to test checked mode on browsers. Now we do.

Review URL: https://chromiumcodereview.appspot.com//10905099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11877 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 15:57:38 +00:00
alanknight@google.com 7cc69cba39 Parsing dates with format that's just month or day will fail on certain days
Review URL: https://chromiumcodereview.appspot.com//10916015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11636 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 17:54:13 +00:00
sgjesse@google.com 686bd7b5a1 Disable failing test
R=kmillikin@google.com

BUG=dart:4838

Review URL: https://chromiumcodereview.appspot.com//10907004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11582 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 08:09:06 +00:00
dgrove@google.com f76b3e0ac8 Fix syntax error in args.dart, reenable args tests.
Review URL: https://chromiumcodereview.appspot.com//10837315

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10920 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 20:15:29 +00:00
dgrove@google.com a71d1a3b93 Skip args tests to get gots green.
TBR=efortuna@google.com
Review URL: https://chromiumcodereview.appspot.com//10829393

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10917 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 19:51:18 +00:00
alanknight@google.com 2f05a496cc One more place that needs a "test" prefix in skipped
Review URL: https://chromiumcodereview.appspot.com//10824320

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10777 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 23:09:09 +00:00
alanknight@google.com 38f1abc22c Missing "test" prefix on skipped fixnum test
Review URL: https://chromiumcodereview.appspot.com//10834347

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10773 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 22:12:51 +00:00
alanknight@google.com 3122c09799 Move status file entries from tests/lib to pkg so as not to run known failing tests on the moved li…
Review URL: https://chromiumcodereview.appspot.com//10836272

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10772 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 22:02:27 +00:00
dgrove@google.com 747b22d3bc Move fixnum to from lib/ to pkg/ . Once pub.dartlang.org
is available, this package will likely be moved there.
Review URL: https://chromiumcodereview.appspot.com//10854162

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10769 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 20:33:16 +00:00
efortuna@google.com 2cf286df4f Fix Opera's red build status.
Review URL: https://chromiumcodereview.appspot.com//10855180

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10755 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 17:41:00 +00:00
antonm@google.com da9404127f Update suppressions.
TBR=smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10831326

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10712 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 11:50:51 +00:00
alanknight@google.com ce28be9d2f Move tests for things in /pkg into the right places for packages
Review URL: https://chromiumcodereview.appspot.com//10828310

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10688 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 23:05:20 +00:00