[flutter_tools] support run -d chrome test scripts (#51658)
This commit is contained in:
5
dev/integration_tests/web/lib/a.dart
Normal file
5
dev/integration_tests/web/lib/a.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
const String message = 'a';
|
||||
5
dev/integration_tests/web/lib/b.dart
Normal file
5
dev/integration_tests/web/lib/b.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
const String message = 'b';
|
||||
5
dev/integration_tests/web/lib/c.dart
Normal file
5
dev/integration_tests/web/lib/c.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
const String message = 'c';
|
||||
5
dev/integration_tests/web/lib/d.dart
Normal file
5
dev/integration_tests/web/lib/d.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
const String message = 'd';
|
||||
16
dev/integration_tests/web/test/test.dart
Normal file
16
dev/integration_tests/web/test/test.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:web_integration/a.dart'
|
||||
if (dart.library.io) 'package:web_integration/b.dart' as message1;
|
||||
import 'package:web_integration/c.dart'
|
||||
if (dart.library.html) 'package:web_integration/d.dart' as message2;
|
||||
|
||||
void main() {
|
||||
if (message1.message == 'a' && message2.message == 'd') {
|
||||
print('--- TEST SUCCEEDED ---');
|
||||
} else {
|
||||
print('--- TEST FAILED ---');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user