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

Side by Side Diff: client/html/generated/src/wrapping/_MediaListWrappingImplementation.dart

Issue 9178030: Add tests for Element#elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis t { 7 class MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis t {
8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 9
10 int get length() { return _ptr.length; } 10 int get length() { return _ptr.length; }
(...skipping 24 matching lines...) Expand all
35 35
36 void sort(int compare(String a, String b)) { 36 void sort(int compare(String a, String b)) {
37 throw new UnsupportedOperationException("Cannot sort immutable List."); 37 throw new UnsupportedOperationException("Cannot sort immutable List.");
38 } 38 }
39 39
40 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { 40 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
41 throw new UnsupportedOperationException("This object is immutable."); 41 throw new UnsupportedOperationException("This object is immutable.");
42 } 42 }
43 43
44 int indexOf(String element, [int start = 0]) { 44 int indexOf(String element, [int start = 0]) {
45 return _Lists.indexOf(this, element, start, this.length); 45 return Lists.indexOf(this, element, start, this.length);
46 } 46 }
47 47
48 int lastIndexOf(String element, [int start = null]) { 48 int lastIndexOf(String element, [int start = null]) {
49 if (start === null) start = length - 1; 49 if (start === null) start = length - 1;
50 return _Lists.lastIndexOf(this, element, start); 50 return Lists.lastIndexOf(this, element, start);
51 } 51 }
52 52
53 int clear() { 53 int clear() {
54 throw new UnsupportedOperationException("Cannot clear immutable List."); 54 throw new UnsupportedOperationException("Cannot clear immutable List.");
55 } 55 }
56 56
57 String removeLast() { 57 String removeLast() {
58 throw new UnsupportedOperationException("Cannot removeLast on immutable List ."); 58 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
59 } 59 }
60 60
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 void deleteMedium(String oldMedium) { 114 void deleteMedium(String oldMedium) {
115 _ptr.deleteMedium(oldMedium); 115 _ptr.deleteMedium(oldMedium);
116 return; 116 return;
117 } 117 }
118 118
119 String item(int index) { 119 String item(int index) {
120 return _ptr.item(index); 120 return _ptr.item(index);
121 } 121 }
122 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698