[web] Running safari tests on LUCI (flutter/engine#16715)

* Safari font collection tests skip failing methods

* add a clear to the semantics test to make sure no DOM elements are leaking to the other tests

* fix semantics_helper_test. skip for semantics_test. teardown didn't work

* skip test, the skipped method run for 8 minutes according to the logs

* history tests methods runs multiple times. only run them on linux for now. they were also already failing in edge/windows
This commit is contained in:
Nurhan Turgut
2020-02-21 09:03:13 -08:00
committed by GitHub
parent fa05d5d7e6
commit 3fb1af296c
4 changed files with 41 additions and 15 deletions

View File

@@ -3,6 +3,8 @@
// found in the LICENSE file.
// @dart = 2.6
@TestOn('vm && linux')
import 'dart:async';
import 'dart:typed_data';
@@ -158,7 +160,8 @@ void main() {
expect(strategy.currentEntryIndex, -1);
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50836
skip: browserEngine == BrowserEngine.edge);
skip: browserEngine == BrowserEngine.edge ||
browserEngine == BrowserEngine.webkit);
test('handle user-provided url', () async {
strategy =

View File

@@ -59,11 +59,14 @@ void main() {
expect(shouldForwardToFramework, true);
event = html.PointerEvent('pointermove');
shouldForwardToFramework =
desktopSemanticsEnabler.tryEnableSemantics(event);
// Pointer events are not defined in webkit.
if (browserEngine != BrowserEngine.webkit) {
event = html.PointerEvent('pointermove');
shouldForwardToFramework =
desktopSemanticsEnabler.tryEnableSemantics(event);
expect(shouldForwardToFramework, true);
expect(shouldForwardToFramework, true);
}
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50754
skip: browserEngine == BrowserEngine.edge);

View File

@@ -396,8 +396,10 @@ void _testVerticalScrolling() {
semantics().semanticsEnabled = false;
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50590
// TODO(nurhan): https://github.com/flutter/flutter/issues/50754
skip: browserEngine == BrowserEngine.edge);
skip: browserEngine == BrowserEngine.webkit ||
browserEngine == BrowserEngine.edge);
test('scrollable node with children has a container node', () async {
semantics()
@@ -432,8 +434,10 @@ void _testVerticalScrolling() {
semantics().semanticsEnabled = false;
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50590
// TODO(nurhan): https://github.com/flutter/flutter/issues/50754
skip: browserEngine == BrowserEngine.edge);
skip: browserEngine == BrowserEngine.webkit ||
browserEngine == BrowserEngine.edge);
test('scrollable node dispatches scroll events', () async {
final StreamController<int> idLogController = StreamController<int>();
@@ -544,8 +548,10 @@ void _testHorizontalScrolling() {
semantics().semanticsEnabled = false;
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50590
// TODO(nurhan): https://github.com/flutter/flutter/issues/50754
skip: browserEngine == BrowserEngine.edge);
skip: browserEngine == BrowserEngine.webkit ||
browserEngine == BrowserEngine.edge);
test('scrollable node with children has a container node', () async {
semantics()
@@ -580,8 +586,10 @@ void _testHorizontalScrolling() {
semantics().semanticsEnabled = false;
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50590
// TODO(nurhan): https://github.com/flutter/flutter/issues/50754
skip: browserEngine == BrowserEngine.edge);
skip: browserEngine == BrowserEngine.webkit ||
browserEngine == BrowserEngine.edge);
test('scrollable node dispatches scroll events', () async {
final SemanticsActionLogger logger = SemanticsActionLogger();
@@ -1140,8 +1148,10 @@ void _testTappable() {
semantics().semanticsEnabled = false;
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50590
// TODO(nurhan): https://github.com/flutter/flutter/issues/50754
skip: browserEngine == BrowserEngine.edge);
skip: browserEngine == BrowserEngine.webkit ||
browserEngine == BrowserEngine.edge);
}
void _testImage() {

View File

@@ -57,7 +57,9 @@ void main() {
expect(fontFamilyList.first, 'Ahem ahem ahem');
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50770
skip: browserEngine == BrowserEngine.edge);
// TODO(nurhan): https://github.com/flutter/flutter/issues/51142
skip: browserEngine == BrowserEngine.edge ||
browserEngine == BrowserEngine.webkit);
test('Register Asset with capital case letters', () async {
final String _testFontFamily = "AhEm";
@@ -101,7 +103,9 @@ void main() {
}
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50770
skip: browserEngine == BrowserEngine.edge);
// TODO(nurhan): https://github.com/flutter/flutter/issues/51142
skip: browserEngine == BrowserEngine.edge ||
browserEngine == BrowserEngine.webkit);
test('Register Asset twice with exclamation mark', () async {
final String _testFontFamily = 'Ahem!!ahem';
@@ -125,7 +129,9 @@ void main() {
}
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50770
skip: browserEngine == BrowserEngine.edge);
// TODO(nurhan): https://github.com/flutter/flutter/issues/51142
skip: browserEngine == BrowserEngine.edge ||
browserEngine == BrowserEngine.webkit);
test('Register Asset twice with comma', () async {
final String _testFontFamily = 'Ahem ,ahem';
@@ -149,7 +155,9 @@ void main() {
}
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50770
skip: browserEngine == BrowserEngine.edge);
// TODO(nurhan): https://github.com/flutter/flutter/issues/51142
skip: browserEngine == BrowserEngine.edge ||
browserEngine == BrowserEngine.webkit);
test('Register Asset twice with a digit at the start of a token',
() async {
@@ -174,7 +182,9 @@ void main() {
}
},
// TODO(nurhan): https://github.com/flutter/flutter/issues/50770
skip: browserEngine == BrowserEngine.edge);
// TODO(nurhan): https://github.com/flutter/flutter/issues/51142
skip: browserEngine == BrowserEngine.edge ||
browserEngine == BrowserEngine.webkit);
});
});
}