Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: tests/html/custom/entered_left_view_test.dart

Issue 33643002: "Reverting 28947" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/custom/document_register_type_extensions_test.dart ('k') | tests/html/custom_elements_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom/entered_left_view_test.dart
diff --git a/tests/html/custom/entered_left_view_test.dart b/tests/html/custom/entered_left_view_test.dart
index 874e3b1dddea48ddb049f4b22bcec8daa11982a1..f30b794d29a687c96f1f5bc9a8b393685f50b948 100644
--- a/tests/html/custom/entered_left_view_test.dart
+++ b/tests/html/custom/entered_left_view_test.dart
@@ -150,7 +150,7 @@ main() {
test('Created in a document without a view', () {
docB.body.setInnerHtml('<x-a></x-a>', treeSanitizer: nullSanitizer);
- customElementsTakeRecords();
+ Platform.upgradeCustomElements(docB.body);
expect(invocations, ['created'],
reason: 'only created callback should be invoked when parsing a '
@@ -173,7 +173,7 @@ main() {
test('Created in Shadow DOM that is not in a document', () {
s.setInnerHtml('<x-a></x-a>', treeSanitizer: nullSanitizer);
- customElementsTakeRecords();
+ Platform.upgradeCustomElements(s);
expect(invocations, ['created'],
reason: 'the entered callback should not be invoked when entering a '
@@ -189,7 +189,7 @@ main() {
test('Enters a document with a view as a constituent of Shadow DOM', () {
s.setInnerHtml('<x-a></x-a>', treeSanitizer: nullSanitizer);
- customElementsTakeRecords();
+ Platform.upgradeCustomElements(s);
document.body.append(div);
customElementsTakeRecords();
@@ -216,7 +216,7 @@ main() {
test('Enters a disconnected subtree of DOM', () {
div.setInnerHtml('<x-a></x-a>', treeSanitizer: nullSanitizer);
- customElementsTakeRecords();
+ Platform.upgradeCustomElements(div);
expect(invocations, ['created'],
reason: 'the entered callback should not be invoked when inserted '
@@ -232,7 +232,7 @@ main() {
test('Enters a document with a view as a constituent of a subtree', () {
div.setInnerHtml('<x-a></x-a>', treeSanitizer: nullSanitizer);
- customElementsTakeRecords();
+ Platform.upgradeCustomElements(div);
invocations = [];
document.body.append(div);
customElementsTakeRecords();
« no previous file with comments | « tests/html/custom/document_register_type_extensions_test.dart ('k') | tests/html/custom_elements_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698