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

Unified Diff: lib/html/templates/html/impl/impl_DocumentFragment.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/impl/impl_DocumentFragment.darttemplate
diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
index f87d046b20a720b211d1629952c69b42e43bba82..7437934aa7bb3726b29f2e6075ab9140d92dc78f 100644
--- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -51,7 +51,7 @@ class _FilteredElementList implements List {
}
void sort([Comparator<Element> compare = Comparable.compare]) {
- throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
+ throw new UnsupportedError('TODO(jacobr): should we impl?');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
@@ -120,7 +120,7 @@ class _FrozenCSSClassSet extends _CssClassSet {
_FrozenCSSClassSet() : super(null);
void _write(Set s) {
- throw const UnsupportedOperationException(
+ throw new UnsupportedError(
'frozen class set cannot be modified');
}
Set<String> _read() => new Set<String>();
@@ -263,97 +263,97 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
// Setters throw errors rather than being no-ops because we aren't going to
// retain the values that were set, and erroring out seems clearer.
void set attributes(Map<String, String> value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Attributes can't be set for document fragments.");
}
void set classes(Collection<String> value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Classes can't be set for document fragments.");
}
void set dataAttributes(Map<String, String> value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Data attributes can't be set for document fragments.");
}
void set contentEditable(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Content editable can't be set for document fragments.");
}
String get dir {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Document fragments don't support text direction.");
}
void set dir(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Document fragments don't support text direction.");
}
void set draggable(bool value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Draggable can't be set for document fragments.");
}
void set hidden(bool value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Hidden can't be set for document fragments.");
}
void set id(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"ID can't be set for document fragments.");
}
String get lang {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Document fragments don't support language.");
}
void set lang(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Document fragments don't support language.");
}
void set scrollLeft(int value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Document fragments don't support scrolling.");
}
void set scrollTop(int value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Document fragments don't support scrolling.");
}
void set spellcheck(bool value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Spellcheck can't be set for document fragments.");
}
void set translate(bool value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Spellcheck can't be set for document fragments.");
}
void set tabIndex(int value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Tab index can't be set for document fragments.");
}
void set title(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"Title can't be set for document fragments.");
}
void set webkitdropzone(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"WebKit drop zone can't be set for document fragments.");
}
void set webkitRegionOverflow(String value) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
"WebKit region overflow can't be set for document fragments.");
}
« no previous file with comments | « lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate ('k') | lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698