Skip to content

Commit caba0d7

Browse files
authored
Update to the latest DevTools (#1071)
* Update devtools version
1 parent 15e7ec4 commit caba0d7

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

dwds/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 6.0.0-dev
22

3+
- Depend on the latest `package:devtools` and `package:devtools_server`.
34
- Support using WebSockets for the debug backend by passing
45
`useSseForDebugBackend: false` to `Dwds.start()`
56
- Ensure we run main on a hot restart request even if no modules were

dwds/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ dependencies:
1515
built_value: '>=6.7.0 <8.0.0'
1616
crypto: ^2.0.6
1717
# devtools_server indirectly depends on devtools so keep this around.
18-
devtools: ^0.2.0
19-
devtools_server: ^0.2.0
18+
devtools: ^0.8.0
19+
devtools_server: ^0.8.0
2020
file: ^5.1.0
2121
http: ^0.12.0
2222
http_multi_server: ^2.0.0

dwds/test/debug_extension_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ void main() async {
4343
test('can launch DevTools', () async {
4444
var windows = await context.webDriver.windows.toList();
4545
await context.webDriver.driver.switchTo.window(windows.last);
46-
expect(await context.webDriver.title, 'Dart DevTools');
46+
// TODO(grouma): switch back to `fixture.webdriver.title` when
47+
// https://github.com/flutter/devtools/issues/2045 is fixed.
48+
expect(await context.webDriver.pageSource, contains('Flutter'));
4749
});
4850

4951
test('can close DevTools and relaunch', () async {

dwds/test/devtools_test.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ void main() {
3030
test('can launch devtools', () async {
3131
var windows = await context.webDriver.windows.toList();
3232
await context.webDriver.driver.switchTo.window(windows.last);
33-
expect(await context.webDriver.title, 'Dart DevTools');
33+
// TODO(grouma): switch back to `fixture.webdriver.title` when
34+
// https://github.com/flutter/devtools/issues/2045 is fixed.
35+
expect(await context.webDriver.pageSource, contains('Flutter'));
3436
});
3537

3638
test('can not launch devtools for the same app in multiple tabs', () async {
@@ -65,7 +67,9 @@ void main() {
6567
windows = await context.webDriver.windows.toList();
6668
devToolsWindow = windows.firstWhere((window) => window != newAppWindow);
6769
await devToolsWindow.setAsActive();
68-
expect(await context.webDriver.title, 'Dart DevTools');
70+
// TODO(grouma): switch back to `fixture.webdriver.title` when
71+
// https://github.com/flutter/devtools/issues/2045 is fixed.
72+
expect(await context.webDriver.pageSource, contains('Flutter'));
6973
});
7074

7175
test('destroys and recreates the isolate during a page refresh', () async {

0 commit comments

Comments
 (0)