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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 1397323002: Disable bad test and don't allow registerElement of direct class in dart:html or dart:svg (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged Created 5 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:
Download patch
« no previous file with comments | « no previous file | tests/co19/co19-dartium.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index b56e3741222131c0e1da7e874447e92356b355ff..a77cddabed6779e9ed70265014261f84e6af0f3c 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -20429,9 +20429,8 @@ class HtmlDocument extends Document {
// Figure out which DOM class is being extended from the user's Dart class.
var classMirror = reflectClass(customElementClass);
- var isHtmlElement = classMirror.qualifiedName == #dart.dom.html.HtmlElement;
var locationUri = classMirror.location.sourceUri.toString();
- if (!isHtmlElement && (locationUri == 'dart:html' || locationUri == 'dart:svg')) {
+ if (locationUri == 'dart:html' || locationUri == 'dart:svg') {
throw new DomException.jsInterop("HierarchyRequestError: Cannot register an existing dart:html or dart:svg type.");
}
« no previous file with comments | « no previous file | tests/co19/co19-dartium.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698