Commit graph

27 commits

Author SHA1 Message Date
Sigmund Cherem
912005267d [web] rename suite dart2js -> web.
Change-Id: I46be49b2effec3e38a3dc44cd45cfe736f77fa78
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182680
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2021-02-04 23:11:32 +00:00
Robert Nystrom
1b2454b85e Migrate language_2/string to null safety.
Change-Id: Ib09f268c8a8edffba007cdd4962550a5e78ff808
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151090
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
2020-06-17 21:14:43 +00:00
Joshua Litt
f9f1ca6171 [dart2js] Create tests/dart2js for nnbd.
Change-Id: Ib8721cf976803d8d1b9d723b7e691e344c768b67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149881
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2020-06-09 16:53:15 +00:00
Joshua Litt
05ca544f15 [dart2js] Move tests/compiler/dart2js_extra to tests/dart2js_2.
Change-Id: Iaa0ca2b4f2d1b15f79ddca37834d3ed2497bc068
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149242
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2020-06-03 15:15:30 +00:00
Ryan Macnak
00b2e580a3 [test] Fork mirrors tests.
Bug: https://github.com/dart-lang/sdk/issues/40045
Change-Id: I597259b38684de87016f1e136723d24f4ac05420
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132440
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-01-22 18:46:23 +00:00
Robert Nystrom
fc1b1ecc71 Move files under language_2 into subdirectories.
Change-Id: Idbcc965a27e9ffeedf5e0a1068b019de4193070f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127745
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-12-11 19:18:00 +00:00
Bob Nystrom
f6ca2c1d8f Remove the Dart 1 tests.
This deletes:

tests/co19
tests/corelib
tests/html
tests/isolate
tests/language
tests/lib

It does not delete tests/standalone because apparently there are tests
in there that are not in standalone_2. (I assume they were added after
the test migration. I don't know why they were added there.)

I have tried to remove references to the old tests from various scripts
and tools but may have missed some. (As you can imagine, grepping for
"lib" does not have the best signal-to-noise ratio.)

"It was a pleasure to burn. It was a special pleasure to see things
eaten, to see things blackened and changed. With the brass nozzle in his
fists, with this great python spitting its venomous kerosene upon the
world, the blood pounded in his head, and his hands were the hands of
some amazing conductor playing all the symphonies of blazing and burning
to bring down the tatters and charcoal ruins of history."

- Ray Bradbury, Fahrenheit 451

Change-Id: If3db4a50e7a5ee25aff8058b1483e2ce8e68424e
Reviewed-on: https://dart-review.googlesource.com/c/75420
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-11 23:45:18 +00:00
Alexander Aprelev
5cbb1bcdf9 Force lf-lineendings for .dart-files.
This ensures that Windows-produced kernel files have source offset that match kernel files produced on other platforms.

Bug: https://github.com/flutter/flutter/issues/22497
Change-Id: I6c1e044a423ea069cd523a6469804efbc0c0b2e2
Reviewed-on: https://dart-review.googlesource.com/77667
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2018-10-02 19:44:04 +00:00
Alexander Thomas
8e925982c6 [infra] Add config for custom hunk text when using git diff on status files
To enable this, run "git config --add --local include.path ../.gitconfig"

Change-Id: I7f8660f046d562adadd726c47ab2d977cf0d772b
Reviewed-on: https://dart-review.googlesource.com/57511
Reviewed-by: Jonas Termansen <sortie@google.com>
2018-05-31 13:56:45 +00:00
Johnni Winther
969c0de335 Avoid crash on EOF error in file with Windows line encoding
+ start using spans from CFE (now that they're available)

Change-Id: I4fe82070d32948a64fb0fab527bd4cc857eebeb4
Reviewed-on: https://dart-review.googlesource.com/49841
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-04-09 12:16:20 +00:00
Bob Nystrom
ba84855c0a Migrate the lingering language_strong tests over to language_2.
Change-Id: I4d60b650a2146c1d9be0fd0c5f98eac85f9e2eb1
Reviewed-on: https://dart-review.googlesource.com/16333
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-10-27 23:44:08 +00:00
Jakob Roland Andersen
0a3ed33abd Reland "Migrate test batch 226 to Dart 2.0"
This is a reland of 77a7ca98a2
Original change's description:
> Migrate test batch 226 to Dart 2.0
> 
> Specifically skipped formatting these files, since there are tests that depend
> on non-standard source formatting.
> 
> Bug:
> Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
> Reviewed-on: https://dart-review.googlesource.com/3440
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

Change-Id: I083c07c08333909aaf5bce763601445ff9f0413f
Reviewed-on: https://dart-review.googlesource.com/3920
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-08 09:28:18 +00:00
Jakob Roland Andersen
b4835cce26 Revert "Migrate test batch 226 to Dart 2.0"
This reverts commit 77a7ca98a2.

Reason for revert: Migrated a test file that's still being used by the unmigrated tests.

Original change's description:
> Migrate test batch 226 to Dart 2.0
> 
> Specifically skipped formatting these files, since there are tests that depend
> on non-standard source formatting.
> 
> Bug:
> Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
> Reviewed-on: https://dart-review.googlesource.com/3440
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

TBR=jakobr@google.com,lrn@google.com

Change-Id: If4d0b44f81cfadf290bf72b23765fa85a6580937
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/3900
Reviewed-by: Jakob Roland Andersen <jakobr@google.com>
2017-09-07 09:34:28 +00:00
Jakob Roland Andersen
77a7ca98a2 Migrate test batch 226 to Dart 2.0
Specifically skipped formatting these files, since there are tests that depend
on non-standard source formatting.

Bug:
Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
Reviewed-on: https://dart-review.googlesource.com/3440
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-07 09:15:44 +00:00
Florian Loitsch
051f0f1267 Added new entries to the .gitattributes file.
Also updated the tests so that we don't forget in the future.

Change-Id: I0a998af306a0b6fa54b3c86cf164fdfe1f76340d
Reviewed-on: https://dart-review.googlesource.com/3624
Reviewed-by: William Hesse <whesse@google.com>
2017-09-06 18:05:57 +00:00
Bob Nystrom
d5acd26b1d Restore line endings of files that should be CRLF. 2016-12-09 11:09:55 -08:00
Zach Anderson
eba3743adb Adjust line endings setting in .gitattributes
When checking out code on Windows, we have git set up to automagically
convert LF line-endings to CRLF line-endings. This confuses the canned
formatting presubmit check, which fails because the line endings are not
what it wants.

This CL turns off the automagic line-ending conversion for C/C++ source
files, so that clang-format doesn't get confused by them on Windows.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2490993002 .
2016-11-09 09:23:21 -08:00
John Messerly
c1cde9600b use pkg/dev_compiler in the build 2016-08-31 18:05:17 -07:00
Ivan Posva
3a8c3ecf9e - Fix git files.
BUG=
R=asiva@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org//1340133006 .
2015-09-14 16:27:51 -07:00
Johnni Winther
f49f00608f Add tests for problem with newline encoding in multiline strings.
R=karlklose@google.com

Review URL: https://codereview.chromium.org//1252443002.
2015-07-22 13:10:13 +02:00
Stephen Adams
4f06486925 js_ast test is now line-ending agnostic
TBR=herhut@google.com

Review URL: https://codereview.chromium.org//1208993006.
2015-07-01 08:26:36 -07:00
William Hesse
57765a8929 Ensure correct line endings for method_mirror_source tests.
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1218813002.
2015-06-29 13:43:57 +02:00
Ryan Macnak
0d70fd8d9f Don't normalize the LF test either (for Windows).
Review URL: https://codereview.chromium.org//1212933002.
2015-06-26 09:53:21 -07:00
Stephan Herhut
225be75498 Fix some tests and exclude others from CRLF rewriting.
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1212823002.
2015-06-26 14:40:01 +02:00
Stephan Herhut
dc02e2064a Don't normalize the CR test either.
BUG=
R=herhut@google.com

Review URL: https://codereview.chromium.org//1208183002.
2015-06-26 13:13:02 +02:00
Stephan Herhut
6655883f88 dart2js: Exclude string interpolation tests from CRLF rewriting.
BUG=
TBR=johnniwinther@google.com

Review URL: https://codereview.chromium.org//1206953003.
2015-06-25 14:27:10 +02:00
Stephan Herhut
b1c1606e17 Enforce LF line endings in the git database.
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//1168393003.
2015-06-25 13:41:53 +02:00