OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/named_parameters_with_object_property_names_test'
, null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__named_parameters_with_object_property_names_test(exports, dart
_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const named_parameters_with_object_property_names_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType(
dart.dynamic, [], {constructor: dart.dynamic})))(); |
| 13 let __Todynamic$ = () => (__Todynamic$ = dart.constFn(dart.definiteFunctionTyp
e(dart.dynamic, [], {hasOwnProperty: dart.dynamic})))(); |
| 14 let __Todynamic$0 = () => (__Todynamic$0 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {isPrototypeOf: dart.dynamic})))(); |
| 15 let __Todynamic$1 = () => (__Todynamic$1 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {propertyIsEnumerable: dart.dynamic})))(); |
| 16 let __Todynamic$2 = () => (__Todynamic$2 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {toSource: dart.dynamic})))(); |
| 17 let __Todynamic$3 = () => (__Todynamic$3 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {toLocaleString: dart.dynamic})))(); |
| 18 let __Todynamic$4 = () => (__Todynamic$4 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {toString: dart.dynamic})))(); |
| 19 let __Todynamic$5 = () => (__Todynamic$5 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {unwatch: dart.dynamic})))(); |
| 20 let __Todynamic$6 = () => (__Todynamic$6 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {valueOf: dart.dynamic})))(); |
| 21 let __Todynamic$7 = () => (__Todynamic$7 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {watch: dart.dynamic})))(); |
| 22 named_parameters_with_object_property_names_test.main = function() { |
| 23 named_parameters_with_object_property_names_test.test_constructor(); |
| 24 named_parameters_with_object_property_names_test.test_hasOwnProperty(); |
| 25 named_parameters_with_object_property_names_test.test_isPrototypeOf(); |
| 26 named_parameters_with_object_property_names_test.test_propertyIsEnumerable()
; |
| 27 named_parameters_with_object_property_names_test.test_toSource(); |
| 28 named_parameters_with_object_property_names_test.test_toLocaleString(); |
| 29 named_parameters_with_object_property_names_test.test_toString(); |
| 30 named_parameters_with_object_property_names_test.test_unwatch(); |
| 31 named_parameters_with_object_property_names_test.test_valueOf(); |
| 32 named_parameters_with_object_property_names_test.test_watch(); |
| 33 }; |
| 34 dart.fn(named_parameters_with_object_property_names_test.main, VoidTodynamic()
); |
| 35 named_parameters_with_object_property_names_test.TestClass_constructor = class
TestClass_constructor extends core.Object { |
| 36 method(opts) { |
| 37 let constructor = opts && 'constructor' in opts ? opts.constructor : null; |
| 38 return constructor; |
| 39 } |
| 40 static staticMethod(opts) { |
| 41 let constructor = opts && 'constructor' in opts ? opts.constructor : null; |
| 42 return constructor; |
| 43 } |
| 44 }; |
| 45 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_c
onstructor, { |
| 46 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {constr
uctor: dart.dynamic})}), |
| 47 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
constructor: dart.dynamic})}), |
| 48 names: ['staticMethod'] |
| 49 }); |
| 50 named_parameters_with_object_property_names_test.globalMethod_constructor = fu
nction(opts) { |
| 51 let constructor = opts && 'constructor' in opts ? opts.constructor : null; |
| 52 return constructor; |
| 53 }; |
| 54 dart.fn(named_parameters_with_object_property_names_test.globalMethod_construc
tor, __Todynamic()); |
| 55 named_parameters_with_object_property_names_test.test_constructor = function()
{ |
| 56 let obj = new named_parameters_with_object_property_names_test.TestClass_con
structor(); |
| 57 expect$.Expect.equals(null, obj.method()); |
| 58 expect$.Expect.equals(0, obj.method({constructor: 0})); |
| 59 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_constructor.staticMethod()); |
| 60 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_constructor.staticMethod({constructor: 0})); |
| 61 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_constructor()); |
| 62 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_constructor({constructor: 0})); |
| 63 }; |
| 64 dart.fn(named_parameters_with_object_property_names_test.test_constructor, Voi
dTodynamic()); |
| 65 named_parameters_with_object_property_names_test.TestClass_hasOwnProperty = cl
ass TestClass_hasOwnProperty extends core.Object { |
| 66 method(opts) { |
| 67 let hasOwnProperty = opts && 'hasOwnProperty' in opts ? opts.hasOwnPropert
y : null; |
| 68 return hasOwnProperty; |
| 69 } |
| 70 static staticMethod(opts) { |
| 71 let hasOwnProperty = opts && 'hasOwnProperty' in opts ? opts.hasOwnPropert
y : null; |
| 72 return hasOwnProperty; |
| 73 } |
| 74 }; |
| 75 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_h
asOwnProperty, { |
| 76 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {hasOwn
Property: dart.dynamic})}), |
| 77 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
hasOwnProperty: dart.dynamic})}), |
| 78 names: ['staticMethod'] |
| 79 }); |
| 80 named_parameters_with_object_property_names_test.globalMethod_hasOwnProperty =
function(opts) { |
| 81 let hasOwnProperty = opts && 'hasOwnProperty' in opts ? opts.hasOwnProperty
: null; |
| 82 return hasOwnProperty; |
| 83 }; |
| 84 dart.fn(named_parameters_with_object_property_names_test.globalMethod_hasOwnPr
operty, __Todynamic$()); |
| 85 named_parameters_with_object_property_names_test.test_hasOwnProperty = functio
n() { |
| 86 let obj = new named_parameters_with_object_property_names_test.TestClass_has
OwnProperty(); |
| 87 expect$.Expect.equals(null, obj.method()); |
| 88 expect$.Expect.equals(0, obj.method({hasOwnProperty: 0})); |
| 89 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_hasOwnProperty.staticMethod()); |
| 90 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_hasOwnProperty.staticMethod({hasOwnProperty: 0})); |
| 91 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_hasOwnProperty()); |
| 92 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_hasOwnProperty({hasOwnProperty: 0})); |
| 93 }; |
| 94 dart.fn(named_parameters_with_object_property_names_test.test_hasOwnProperty,
VoidTodynamic()); |
| 95 named_parameters_with_object_property_names_test.TestClass_isPrototypeOf = cla
ss TestClass_isPrototypeOf extends core.Object { |
| 96 method(opts) { |
| 97 let isPrototypeOf = opts && 'isPrototypeOf' in opts ? opts.isPrototypeOf :
null; |
| 98 return isPrototypeOf; |
| 99 } |
| 100 static staticMethod(opts) { |
| 101 let isPrototypeOf = opts && 'isPrototypeOf' in opts ? opts.isPrototypeOf :
null; |
| 102 return isPrototypeOf; |
| 103 } |
| 104 }; |
| 105 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_i
sPrototypeOf, { |
| 106 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {isProt
otypeOf: dart.dynamic})}), |
| 107 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
isPrototypeOf: dart.dynamic})}), |
| 108 names: ['staticMethod'] |
| 109 }); |
| 110 named_parameters_with_object_property_names_test.globalMethod_isPrototypeOf =
function(opts) { |
| 111 let isPrototypeOf = opts && 'isPrototypeOf' in opts ? opts.isPrototypeOf : n
ull; |
| 112 return isPrototypeOf; |
| 113 }; |
| 114 dart.fn(named_parameters_with_object_property_names_test.globalMethod_isProtot
ypeOf, __Todynamic$0()); |
| 115 named_parameters_with_object_property_names_test.test_isPrototypeOf = function
() { |
| 116 let obj = new named_parameters_with_object_property_names_test.TestClass_isP
rototypeOf(); |
| 117 expect$.Expect.equals(null, obj.method()); |
| 118 expect$.Expect.equals(0, obj.method({isPrototypeOf: 0})); |
| 119 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_isPrototypeOf.staticMethod()); |
| 120 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_isPrototypeOf.staticMethod({isPrototypeOf: 0})); |
| 121 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_isPrototypeOf()); |
| 122 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_isPrototypeOf({isPrototypeOf: 0})); |
| 123 }; |
| 124 dart.fn(named_parameters_with_object_property_names_test.test_isPrototypeOf, V
oidTodynamic()); |
| 125 named_parameters_with_object_property_names_test.TestClass_propertyIsEnumerabl
e = class TestClass_propertyIsEnumerable extends core.Object { |
| 126 method(opts) { |
| 127 let propertyIsEnumerable = opts && 'propertyIsEnumerable' in opts ? opts.p
ropertyIsEnumerable : null; |
| 128 return propertyIsEnumerable; |
| 129 } |
| 130 static staticMethod(opts) { |
| 131 let propertyIsEnumerable = opts && 'propertyIsEnumerable' in opts ? opts.p
ropertyIsEnumerable : null; |
| 132 return propertyIsEnumerable; |
| 133 } |
| 134 }; |
| 135 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_p
ropertyIsEnumerable, { |
| 136 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {proper
tyIsEnumerable: dart.dynamic})}), |
| 137 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
propertyIsEnumerable: dart.dynamic})}), |
| 138 names: ['staticMethod'] |
| 139 }); |
| 140 named_parameters_with_object_property_names_test.globalMethod_propertyIsEnumer
able = function(opts) { |
| 141 let propertyIsEnumerable = opts && 'propertyIsEnumerable' in opts ? opts.pro
pertyIsEnumerable : null; |
| 142 return propertyIsEnumerable; |
| 143 }; |
| 144 dart.fn(named_parameters_with_object_property_names_test.globalMethod_property
IsEnumerable, __Todynamic$1()); |
| 145 named_parameters_with_object_property_names_test.test_propertyIsEnumerable = f
unction() { |
| 146 let obj = new named_parameters_with_object_property_names_test.TestClass_pro
pertyIsEnumerable(); |
| 147 expect$.Expect.equals(null, obj.method()); |
| 148 expect$.Expect.equals(0, obj.method({propertyIsEnumerable: 0})); |
| 149 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_propertyIsEnumerable.staticMethod()); |
| 150 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_propertyIsEnumerable.staticMethod({propertyIsEnumerable: 0})); |
| 151 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_propertyIsEnumerable()); |
| 152 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_propertyIsEnumerable({propertyIsEnumerable: 0})); |
| 153 }; |
| 154 dart.fn(named_parameters_with_object_property_names_test.test_propertyIsEnumer
able, VoidTodynamic()); |
| 155 named_parameters_with_object_property_names_test.TestClass_toSource = class Te
stClass_toSource extends core.Object { |
| 156 method(opts) { |
| 157 let toSource = opts && 'toSource' in opts ? opts.toSource : null; |
| 158 return toSource; |
| 159 } |
| 160 static staticMethod(opts) { |
| 161 let toSource = opts && 'toSource' in opts ? opts.toSource : null; |
| 162 return toSource; |
| 163 } |
| 164 }; |
| 165 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_t
oSource, { |
| 166 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {toSour
ce: dart.dynamic})}), |
| 167 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
toSource: dart.dynamic})}), |
| 168 names: ['staticMethod'] |
| 169 }); |
| 170 named_parameters_with_object_property_names_test.globalMethod_toSource = funct
ion(opts) { |
| 171 let toSource = opts && 'toSource' in opts ? opts.toSource : null; |
| 172 return toSource; |
| 173 }; |
| 174 dart.fn(named_parameters_with_object_property_names_test.globalMethod_toSource
, __Todynamic$2()); |
| 175 named_parameters_with_object_property_names_test.test_toSource = function() { |
| 176 let obj = new named_parameters_with_object_property_names_test.TestClass_toS
ource(); |
| 177 expect$.Expect.equals(null, obj.method()); |
| 178 expect$.Expect.equals(0, obj.method({toSource: 0})); |
| 179 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_toSource.staticMethod()); |
| 180 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_toSource.staticMethod({toSource: 0})); |
| 181 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_toSource()); |
| 182 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_toSource({toSource: 0})); |
| 183 }; |
| 184 dart.fn(named_parameters_with_object_property_names_test.test_toSource, VoidTo
dynamic()); |
| 185 named_parameters_with_object_property_names_test.TestClass_toLocaleString = cl
ass TestClass_toLocaleString extends core.Object { |
| 186 method(opts) { |
| 187 let toLocaleString = opts && 'toLocaleString' in opts ? opts.toLocaleStrin
g : null; |
| 188 return toLocaleString; |
| 189 } |
| 190 static staticMethod(opts) { |
| 191 let toLocaleString = opts && 'toLocaleString' in opts ? opts.toLocaleStrin
g : null; |
| 192 return toLocaleString; |
| 193 } |
| 194 }; |
| 195 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_t
oLocaleString, { |
| 196 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {toLoca
leString: dart.dynamic})}), |
| 197 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
toLocaleString: dart.dynamic})}), |
| 198 names: ['staticMethod'] |
| 199 }); |
| 200 named_parameters_with_object_property_names_test.globalMethod_toLocaleString =
function(opts) { |
| 201 let toLocaleString = opts && 'toLocaleString' in opts ? opts.toLocaleString
: null; |
| 202 return toLocaleString; |
| 203 }; |
| 204 dart.fn(named_parameters_with_object_property_names_test.globalMethod_toLocale
String, __Todynamic$3()); |
| 205 named_parameters_with_object_property_names_test.test_toLocaleString = functio
n() { |
| 206 let obj = new named_parameters_with_object_property_names_test.TestClass_toL
ocaleString(); |
| 207 expect$.Expect.equals(null, obj.method()); |
| 208 expect$.Expect.equals(0, obj.method({toLocaleString: 0})); |
| 209 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_toLocaleString.staticMethod()); |
| 210 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_toLocaleString.staticMethod({toLocaleString: 0})); |
| 211 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_toLocaleString()); |
| 212 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_toLocaleString({toLocaleString: 0})); |
| 213 }; |
| 214 dart.fn(named_parameters_with_object_property_names_test.test_toLocaleString,
VoidTodynamic()); |
| 215 named_parameters_with_object_property_names_test.TestClass_toString = class Te
stClass_toString extends core.Object { |
| 216 method(opts) { |
| 217 let toString = opts && 'toString' in opts ? opts.toString : null; |
| 218 return toString; |
| 219 } |
| 220 static staticMethod(opts) { |
| 221 let toString = opts && 'toString' in opts ? opts.toString : null; |
| 222 return toString; |
| 223 } |
| 224 }; |
| 225 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_t
oString, { |
| 226 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {toStri
ng: dart.dynamic})}), |
| 227 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
toString: dart.dynamic})}), |
| 228 names: ['staticMethod'] |
| 229 }); |
| 230 named_parameters_with_object_property_names_test.globalMethod_toString = funct
ion(opts) { |
| 231 let toString = opts && 'toString' in opts ? opts.toString : null; |
| 232 return toString; |
| 233 }; |
| 234 dart.fn(named_parameters_with_object_property_names_test.globalMethod_toString
, __Todynamic$4()); |
| 235 named_parameters_with_object_property_names_test.test_toString = function() { |
| 236 let obj = new named_parameters_with_object_property_names_test.TestClass_toS
tring(); |
| 237 expect$.Expect.equals(null, obj.method()); |
| 238 expect$.Expect.equals(0, obj.method({toString: 0})); |
| 239 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_toString.staticMethod()); |
| 240 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_toString.staticMethod({toString: 0})); |
| 241 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_toString()); |
| 242 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_toString({toString: 0})); |
| 243 }; |
| 244 dart.fn(named_parameters_with_object_property_names_test.test_toString, VoidTo
dynamic()); |
| 245 named_parameters_with_object_property_names_test.TestClass_unwatch = class Tes
tClass_unwatch extends core.Object { |
| 246 method(opts) { |
| 247 let unwatch = opts && 'unwatch' in opts ? opts.unwatch : null; |
| 248 return unwatch; |
| 249 } |
| 250 static staticMethod(opts) { |
| 251 let unwatch = opts && 'unwatch' in opts ? opts.unwatch : null; |
| 252 return unwatch; |
| 253 } |
| 254 }; |
| 255 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_u
nwatch, { |
| 256 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {unwatc
h: dart.dynamic})}), |
| 257 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
unwatch: dart.dynamic})}), |
| 258 names: ['staticMethod'] |
| 259 }); |
| 260 named_parameters_with_object_property_names_test.globalMethod_unwatch = functi
on(opts) { |
| 261 let unwatch = opts && 'unwatch' in opts ? opts.unwatch : null; |
| 262 return unwatch; |
| 263 }; |
| 264 dart.fn(named_parameters_with_object_property_names_test.globalMethod_unwatch,
__Todynamic$5()); |
| 265 named_parameters_with_object_property_names_test.test_unwatch = function() { |
| 266 let obj = new named_parameters_with_object_property_names_test.TestClass_unw
atch(); |
| 267 expect$.Expect.equals(null, obj.method()); |
| 268 expect$.Expect.equals(0, obj.method({unwatch: 0})); |
| 269 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_unwatch.staticMethod()); |
| 270 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_unwatch.staticMethod({unwatch: 0})); |
| 271 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_unwatch()); |
| 272 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_unwatch({unwatch: 0})); |
| 273 }; |
| 274 dart.fn(named_parameters_with_object_property_names_test.test_unwatch, VoidTod
ynamic()); |
| 275 named_parameters_with_object_property_names_test.TestClass_valueOf = class Tes
tClass_valueOf extends core.Object { |
| 276 method(opts) { |
| 277 let valueOf = opts && 'valueOf' in opts ? opts.valueOf : null; |
| 278 return valueOf; |
| 279 } |
| 280 static staticMethod(opts) { |
| 281 let valueOf = opts && 'valueOf' in opts ? opts.valueOf : null; |
| 282 return valueOf; |
| 283 } |
| 284 }; |
| 285 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_v
alueOf, { |
| 286 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {valueO
f: dart.dynamic})}), |
| 287 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
valueOf: dart.dynamic})}), |
| 288 names: ['staticMethod'] |
| 289 }); |
| 290 named_parameters_with_object_property_names_test.globalMethod_valueOf = functi
on(opts) { |
| 291 let valueOf = opts && 'valueOf' in opts ? opts.valueOf : null; |
| 292 return valueOf; |
| 293 }; |
| 294 dart.fn(named_parameters_with_object_property_names_test.globalMethod_valueOf,
__Todynamic$6()); |
| 295 named_parameters_with_object_property_names_test.test_valueOf = function() { |
| 296 let obj = new named_parameters_with_object_property_names_test.TestClass_val
ueOf(); |
| 297 expect$.Expect.equals(null, obj.method()); |
| 298 expect$.Expect.equals(0, obj.method({valueOf: 0})); |
| 299 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_valueOf.staticMethod()); |
| 300 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_valueOf.staticMethod({valueOf: 0})); |
| 301 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_valueOf()); |
| 302 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_valueOf({valueOf: 0})); |
| 303 }; |
| 304 dart.fn(named_parameters_with_object_property_names_test.test_valueOf, VoidTod
ynamic()); |
| 305 named_parameters_with_object_property_names_test.TestClass_watch = class TestC
lass_watch extends core.Object { |
| 306 method(opts) { |
| 307 let watch = opts && 'watch' in opts ? opts.watch : null; |
| 308 return watch; |
| 309 } |
| 310 static staticMethod(opts) { |
| 311 let watch = opts && 'watch' in opts ? opts.watch : null; |
| 312 return watch; |
| 313 } |
| 314 }; |
| 315 dart.setSignature(named_parameters_with_object_property_names_test.TestClass_w
atch, { |
| 316 methods: () => ({method: dart.definiteFunctionType(dart.dynamic, [], {watch:
dart.dynamic})}), |
| 317 statics: () => ({staticMethod: dart.definiteFunctionType(dart.dynamic, [], {
watch: dart.dynamic})}), |
| 318 names: ['staticMethod'] |
| 319 }); |
| 320 named_parameters_with_object_property_names_test.globalMethod_watch = function
(opts) { |
| 321 let watch = opts && 'watch' in opts ? opts.watch : null; |
| 322 return watch; |
| 323 }; |
| 324 dart.fn(named_parameters_with_object_property_names_test.globalMethod_watch, _
_Todynamic$7()); |
| 325 named_parameters_with_object_property_names_test.test_watch = function() { |
| 326 let obj = new named_parameters_with_object_property_names_test.TestClass_wat
ch(); |
| 327 expect$.Expect.equals(null, obj.method()); |
| 328 expect$.Expect.equals(0, obj.method({watch: 0})); |
| 329 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.TestClass_watch.staticMethod()); |
| 330 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.Te
stClass_watch.staticMethod({watch: 0})); |
| 331 expect$.Expect.equals(null, named_parameters_with_object_property_names_test
.globalMethod_watch()); |
| 332 expect$.Expect.equals(0, named_parameters_with_object_property_names_test.gl
obalMethod_watch({watch: 0})); |
| 333 }; |
| 334 dart.fn(named_parameters_with_object_property_names_test.test_watch, VoidTodyn
amic()); |
| 335 // Exports: |
| 336 exports.named_parameters_with_object_property_names_test = named_parameters_wi
th_object_property_names_test; |
| 337 }); |
OLD | NEW |