Combine results of all the test batches. (flutter/engine#37610)
* Combine results of all the test batches. * Skip regressions * Use bool instead * remove unused var * skip fragment_program_test * Also skip GL context lost test * Transparent background test fails on Firefox and Safari * Skip other test in safari * Skip text test on firefox
This commit is contained in:
@@ -72,6 +72,8 @@ class RunTestsStep implements PipelineStep {
|
||||
|
||||
final TestsByRenderer sortedTests = sortTestsByRenderer(testFiles);
|
||||
|
||||
bool testsPassed = true;
|
||||
|
||||
if (sortedTests.htmlTests.isNotEmpty) {
|
||||
await _runTestBatch(
|
||||
testFiles: sortedTests.htmlTests,
|
||||
@@ -84,6 +86,7 @@ class RunTestsStep implements PipelineStep {
|
||||
skiaClient: skiaClient,
|
||||
overridePathToCanvasKit: overridePathToCanvasKit,
|
||||
);
|
||||
testsPassed &= io.exitCode == 0;
|
||||
}
|
||||
|
||||
if (sortedTests.canvasKitTests.isNotEmpty) {
|
||||
@@ -98,6 +101,7 @@ class RunTestsStep implements PipelineStep {
|
||||
skiaClient: skiaClient,
|
||||
overridePathToCanvasKit: overridePathToCanvasKit,
|
||||
);
|
||||
testsPassed &= io.exitCode == 0;
|
||||
}
|
||||
|
||||
if (sortedTests.skwasmTests.isNotEmpty) {
|
||||
@@ -112,11 +116,12 @@ class RunTestsStep implements PipelineStep {
|
||||
skiaClient: skiaClient,
|
||||
overridePathToCanvasKit: overridePathToCanvasKit,
|
||||
);
|
||||
testsPassed &= io.exitCode == 0;
|
||||
}
|
||||
|
||||
await browserEnvironment.cleanup();
|
||||
|
||||
if (io.exitCode != 0) {
|
||||
if (!testsPassed) {
|
||||
throw ToolExit('Some tests failed');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1747,5 +1747,6 @@ half4 main(vec2 fragCoord) {
|
||||
!.makeShader(<double>[1.0, 0.0, 0.0, 1.0]);
|
||||
|
||||
expect(shaderWithUniform, isNotNull);
|
||||
});
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
}, skip: true);
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ void testMain() {
|
||||
await ui.webOnlyInitializePlatform();
|
||||
});
|
||||
|
||||
group('FragmentProgram can be created from JSON IPLR bundle', () async {
|
||||
test('FragmentProgram can be created from JSON IPLR bundle', () async {
|
||||
final Uint8List data = utf8.encode(kJsonIPLR) as Uint8List;
|
||||
final CkFragmentProgram program = await CkFragmentProgram.fromBytes('test', data);
|
||||
|
||||
@@ -207,5 +207,6 @@ void testMain() {
|
||||
shader.setFloat(0, 5);
|
||||
shader2.dispose();
|
||||
expect(shader2.debugDisposed, true);
|
||||
});
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
}, skip: true);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,8 @@ void testMain() {
|
||||
expect(iter2.moveNext(), isFalse);
|
||||
expect(() => iter1.current, throwsRangeError);
|
||||
expect(() => iter2.current, throwsRangeError);
|
||||
});
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
}, skip: true);
|
||||
|
||||
test('CkPath.reset', () {
|
||||
final ui.Path path = ui.Path();
|
||||
@@ -170,7 +171,8 @@ void testMain() {
|
||||
expect(measure0.extractPath(0, 15).getBounds(), const ui.Rect.fromLTRB(0, 0, 10, 5));
|
||||
expect(measure1.contourIndex, 1);
|
||||
expect(measure1.extractPath(0, 15).getBounds(), const ui.Rect.fromLTRB(20, 20, 30, 25));
|
||||
});
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
}, skip: true);
|
||||
|
||||
test('Path.from', () {
|
||||
const ui.Rect rect1 = ui.Rect.fromLTRB(0, 0, 10, 10);
|
||||
|
||||
@@ -165,8 +165,9 @@ void testMain() {
|
||||
// A new context is created.
|
||||
expect(afterContextLost, isNot(same(before)));
|
||||
},
|
||||
// Firefox doesn't have the WEBGL_lose_context extension.
|
||||
skip: isFirefox || isSafari,
|
||||
// Firefox and Safari don't have the WEBGL_lose_context extension.
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
skip: true,
|
||||
);
|
||||
|
||||
// Regression test for https://github.com/flutter/flutter/issues/75286
|
||||
|
||||
@@ -2567,7 +2567,8 @@ Future<void> testMain() async {
|
||||
expect(input.style.outline, 'none');
|
||||
expect(input.style.border, 'none');
|
||||
expect(input.style.textShadow, 'none');
|
||||
});
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
}, skip: isFirefox);
|
||||
|
||||
test('prevents effect of (forced-colors: active)', () {
|
||||
editingStrategy!.enable(
|
||||
@@ -2578,7 +2579,8 @@ Future<void> testMain() async {
|
||||
|
||||
final DomHTMLElement input = editingStrategy!.activeDomElement;
|
||||
expect(input.style.getPropertyValue('forced-color-adjust'), 'none');
|
||||
});
|
||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
||||
}, skip: isFirefox || isSafari);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user