-
Notifications
You must be signed in to change notification settings - Fork 52
[webview_flutter] Migrate to new analysis options #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5602abd to
2566fe8
Compare
@HakkyuKim @swift-kim |
|
@bwikbs |
Thanks! I'm just curious, is this only happening to us? |
|
@bwikbs |
|
@HakkyuKim |
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
|
Were you able to run integration test? It's failing for some unknown reason (state error) in my case. $ flutter-tizen test integration_test
...
00:54 +0 -1: loading /tmp/flutter_tools.WYUAKN/MPIMSV/webview_flutter_test.dart [E]
Failed to load "/tmp/flutter_tools.WYUAKN/MPIMSV/webview_flutter_test.dart": Bad state: Can't call test() once tests have begun running.
package:test_api Declarer.test
package:flutter_test/src/test_compat.dart 166:13 test
package:flutter_test/src/widget_tester.dart 153:5 testWidgets
home/swift/Git/plugins/packages/webview_flutter/example/integration_test/webview_flutter_test.dart 47:3 main
00:54 +0 -1: (tearDownAll) - did not complete [E]
00:54 +0 -1: Some tests failed.When I tried with the $ flutter-tizen drive --target integration_test/webview_flutter_test.dart --driver test_driver/integration_test.dart
...
[I] flutter: 00:03 +1 ~2: loadUrl with headers
[I] flutter: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
[I] flutter: The following TestFailure was thrown running a test:
[I] flutter: Expected: true
[I] flutter: Actual: <false>
[I] flutter:
[I] flutter: When the exception was thrown, this was the stack:
[I] flutter: #4 main.<anonymous closure> (file:///home/swift/Git/plugins/packages/webview_flutter/example/integration_test/webview_flutter_test.dart:149:5)
[I] flutter: <asynchronous suspension>
flutter: #5 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:170:15)
[I] flutter: <asynchronous suspension>
[I] flutter: #6 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:833:5)
[I] flutter: <asynchronous suspension>
[I] flutter:
[I] flutter: This was caught by the test expectation on the following line:
[I] flutter: file:///home/swift/Git/plugins/packages/webview_flutter/example/integration_test/webview_flutter_test.dart line 149
[I] flutter: The test description was:
[I] flutter: loadUrl with headers
[I] flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
[I] flutter: 00:05 +1 ~2: loadUrl with headers [E]
[I] flutter: Test failed. See exception logs above.
[I] The test description was: loadUrl with headers
[I] flutter:
[I] flutter: 00:05 +1 ~2 -1: JavascriptChannel
[I] flutter: 00:06 +2 ~2 -1: resize webview
[I] flutter: 00:12 +2 ~2 -1: evaluateJavascript
[I] flutter: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
[I] flutter: The following assertion was thrown running a test (but after the test had completed):
[I] flutter: 'package:webview_flutter_tizen/src/platform_view_tizen.dart': Failed assertion: line 240 pos 12:
[I] flutter: 'meta != null': is not true.
[I] flutter:
[I] flutter: When the exception was thrown, this was the stack:
[I] flutter: #2 TizenViewController.setSize (package:webview_flutter_tizen/src/platform_view_tizen.dart:240:12)
[I] flutter: <asynchronous suspension>
[I] flutter: #3 RenderTizenView._sizePlatformView (package:webview_flutter_tizen/src/platform_view_tizen.dart:558:31)
[I] flutter: <asynchronous suspension>
flutter: (elided 2 frames from class _AssertionError)
... |
|
We shouldn't need a Tizen-specific implementation of You may include this commit in this PR: swift-kim@61f6328 This is a breaking change so you will need to increase the version of the package to 0.5.0. |
I forgot this! Thank you! |
* Update RenderTizenView * Update change log * Revert unintended changes * Update version Signed-off-by: MuHong Byun <mh.byun@samsung.com>
|
|
|
Hmm. The |
* Removed TC that cannot be performed at this moment * Minor changes for Tizen webview Signed-off-by: MuHong Byun <mh.byun@samsung.com>
swift-kim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the removed tests not relevant for Tizen?
packages/webview_flutter/example/integration_test/webview_flutter_test.dart
Outdated
Show resolved
Hide resolved
To be more precise, some of them are irrelevant and some are currently not passing. 😢 |
|
|
* f0ca15ee41d2fc96b59fd57b63b6c32cf6c1906b Signed-off-by: MuHong Byun <mh.byun@samsung.com>
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
Contributes to #389.