diff --git a/lib/web_ui/test/engine/history_test.dart b/lib/web_ui/test/engine/history_test.dart index b33247c966088..2704335e13592 100644 --- a/lib/web_ui/test/engine/history_test.dart +++ b/lib/web_ui/test/engine/history_test.dart @@ -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 = diff --git a/lib/web_ui/test/engine/semantics/semantics_helper_test.dart b/lib/web_ui/test/engine/semantics/semantics_helper_test.dart index 0b676422dd285..cd3e0e9e561d9 100644 --- a/lib/web_ui/test/engine/semantics/semantics_helper_test.dart +++ b/lib/web_ui/test/engine/semantics/semantics_helper_test.dart @@ -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); diff --git a/lib/web_ui/test/engine/semantics/semantics_test.dart b/lib/web_ui/test/engine/semantics/semantics_test.dart index ab13233168677..f495acb6006a7 100644 --- a/lib/web_ui/test/engine/semantics/semantics_test.dart +++ b/lib/web_ui/test/engine/semantics/semantics_test.dart @@ -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 idLogController = StreamController(); @@ -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() { diff --git a/lib/web_ui/test/text/font_collection_test.dart b/lib/web_ui/test/text/font_collection_test.dart index 3b37d87159c9d..ec5590f008a23 100644 --- a/lib/web_ui/test/text/font_collection_test.dart +++ b/lib/web_ui/test/text/font_collection_test.dart @@ -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); }); }); }