Files
sdk/tests/lib/html/js_dispatch_property_test_js.js
T
Srujan Gaddam 09e47b6177 [dart:html] Copy test resources from lib_2 to lib
Some none Dart files were not copied over in the migration. Tests
are refactored to use the lib version over lib_2.

Change-Id: I21053d81770c4f83b01f27af99cec11f08577c7b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143330
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2020-04-13 23:56:08 +00:00

17 lines
602 B
JavaScript

// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
self.create = function() {
return {
// If the dispatch property name is uninitialized, it will be `undefined` or
// `null`, which will match these properties on dispatch record
// lookup. These properties map to malformed dispatch records to force an
// error.
'undefined': {p: false},
'null': {p: false},
foo: function(x) { return 'Foo ' + x; },
};
}