Skip to content

Commit

Permalink
Remove unused code excerpt (#3456)
Browse files Browse the repository at this point in the history
Closes #3295
  • Loading branch information
parlough authored Aug 9, 2021
1 parent b5fe542 commit c42a166
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions examples/misc/test/language_tour/browser_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,6 @@ import 'package:test/test.dart';
// #enddocregion package-import

void main() {
test('simple-web-main-function', () {
final div = '<div id="sample_text_id"></div>';
document.body?.appendHtml(div);
void reverseText(MouseEvent e) {}

// TODO(miquelbeltran) Maybe ! would be better here
// (https://github.com/dart-lang/site-www/issues/3295)
// #docregion simple-web-main-function
void main() {
querySelector('#sample_text_id')
?..text = 'Click me!'
..onClick.listen(reverseText);
}
// #enddocregion simple-web-main-function

main();
expect(document.querySelector('#sample_text_id')?.text, 'Click me!');
});

test('cascade-operator', () {
final div = '<button id="confirm"></button>';
document.body?.appendHtml(div);
Expand Down

0 comments on commit c42a166

Please sign in to comment.