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

Unified Diff: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ADded test expectations. Created 8 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
Index: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
index 5d0485c56dc228e32d5812baebace6d97435748d..62aaa4e72419ce421b5c2c7c102736b1f2caa14b 100644
--- a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
@@ -12,7 +12,7 @@ $!MEMBERS
// Firefox does not support offsetX.
var target = this.target;
if (!(target is Element)) {
- throw const UnsupportedOperationException(
+ throw new UnsupportedError(
'offsetX is only supported on elements');
}
return this.clientX - this.target.getBoundingClientRect().left;
@@ -26,7 +26,7 @@ $!MEMBERS
// Firefox does not support offsetY.
var target = this.target;
if (!(target is Element)) {
- throw const UnsupportedOperationException(
+ throw new UnsupportedError(
'offsetY is only supported on elements');
}
return this.clientY - this.target.getBoundingClientRect().top;
« no previous file with comments | « lib/html/src/native_DOMImplementation.dart ('k') | lib/html/templates/html/impl/impl_DocumentFragment.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698