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

Unified Diff: tests/html/js_array_test.dart

Issue 1410403003: Switch Js to JS (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tests/html/js_dart_to_string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_array_test.dart
diff --git a/tests/html/js_array_test.dart b/tests/html/js_array_test.dart
index 58d42db7489d6990c7feb8d4bb3e2ff3977fa574..598cadfb7bb58c1b567f5362d96d82eba9256fdf 100644
--- a/tests/html/js_array_test.dart
+++ b/tests/html/js_array_test.dart
@@ -2,7 +2,7 @@
// 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.
-@Js("ArrayTest.Util")
+@JS("ArrayTest.Util")
library js_array_test;
import 'dart:html';
@@ -159,7 +159,7 @@ ArrayTest.Util = {
""");
}
-@Js()
+@JS()
class PropertyDescriptor {
external get value;
external bool get writable;
@@ -167,14 +167,14 @@ class PropertyDescriptor {
external bool get configurable;
}
-@Js()
+@JS()
class SimpleJsLiteralClass {
external get foo;
}
class Foo {}
-@Js()
+@JS()
external callJsMethod(List array, String methodName, List args);
callIndexOf(List array, value) => callJsMethod(array, "indexOf", [value]);
@@ -189,73 +189,73 @@ callReverse(List array) => callJsMethod(array, "reverse", []);
callListMethodOnObject(object, String methodName, List args) =>
callListMethodOnTarget([], object, methodName, args);
-@Js()
+@JS()
external jsEnumerateIndices(obj);
-@Js()
+@JS()
external bool checkIsArray(obj);
-@Js()
+@JS()
external concatValues(obj);
-@Js()
+@JS()
external concatOntoArray(obj);
-@Js()
+@JS()
external repeatedConcatOntoArray(obj);
-@Js()
+@JS()
external bool everyGreaterThanZero(obj);
-@Js()
+@JS()
external bool everyGreaterThanZeroCheckThisArg(obj);
-@Js()
+@JS()
external filterGreater42(obj);
-@Js()
+@JS()
external forEachCollectResult(List array);
-@Js()
+@JS()
external someEqual42(List array);
-@Js()
+@JS()
external sortNumbersBackwards(List array);
-@Js()
+@JS()
external List spliceDummyItems(List array);
-@Js()
+@JS()
external List spliceTestStringArgs(List array);
-@Js()
+@JS()
external List splicePastEnd(List array);
-@Js()
+@JS()
external String callJsToString(List array);
-@Js()
+@JS()
external mapAddIndexToEachElement(List array);
-@Js()
+@JS()
external reduceSumDoubledElements(List array);
// TODO(jacobr): add a test that distinguishes reduce from reduceRight.
-@Js()
+@JS()
external reduceRightSumDoubledElements(List array);
-@Js()
+@JS()
external PropertyDescriptor getOwnPropertyDescriptor(obj, property);
-@Js("setLength")
+@JS("setLength")
external callSetLength(List array, length);
-@Js()
+@JS()
external getValue(obj, index);
-@Js()
+@JS()
external setValue(obj, index, value);
-@Js()
+@JS()
external callListMethodOnTarget(List target, object, String methodName, List args);
-@Js()
+@JS()
external newArray();
-@Js()
+@JS()
external newLiteral();
main() {
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tests/html/js_dart_to_string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698