未验证 提交 f095a770 编写于 作者: Y Yegor 提交者: GitHub

Disable focused_text_field golden on Firefox (#23442)

上级 82a7556d
// Copyright 2013 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 'dart:html';
/// Whether the current browser is Firefox.
bool get isFirefox => window.navigator.userAgent.toLowerCase().contains('firefox');
......@@ -7,11 +7,12 @@ import 'dart:js_util' as js_util;
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:regular_integration_tests/text_editing_main.dart' as app;
import 'package:flutter/material.dart';
import 'package:integration_test/integration_test.dart';
import 'package:regular_integration_tests/text_editing_main.dart' as app;
import 'package:regular_integration_tests/common.dart';
void main() {
final IntegrationTestWidgetsFlutterBinding binding =
IntegrationTestWidgetsFlutterBinding.ensureInitialized()
......@@ -44,7 +45,13 @@ void main() {
// DOM element's value also changes.
expect(input.value, 'New Value');
await binding.takeScreenshot('focused_text_field');
// Firefox can't make up its mind about what the screenshot should
// look like between LUCI and local.
//
// https://github.com/flutter/flutter/issues/73382
if (!isFirefox) {
await binding.takeScreenshot('focused_text_field');
}
});
testWidgets('Input field with no initial value works',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册