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

Unified Diff: tests/lib/js/null_test.js

Issue 439513002: Fix js/null_test to run also in CSP mode (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « tests/lib/js/null_test.html ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/js/null_test.js
diff --git a/pkg/collection/lib/src/utils.dart b/tests/lib/js/null_test.js
similarity index 56%
copy from pkg/collection/lib/src/utils.dart
copy to tests/lib/js/null_test.js
index c9c753777f07c1c5bd930fa4a3a7e32a5377db0f..35e1241982aceb49c5042bf87e4885141fe30f26 100644
--- a/pkg/collection/lib/src/utils.dart
+++ b/tests/lib/js/null_test.js
@@ -2,12 +2,6 @@
// 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.
-library dart.pkg.collection.utils;
-
-/// A pair of values.
-class Pair<E, F> {
- E first;
- F last;
-
- Pair(this.first, this.last);
-}
+// This code is not inlined in the test to support testing in CSP mode.
+function isUndefined(o) { return o === undefined; }
+function isNull(o) { return o === null; }
« no previous file with comments | « tests/lib/js/null_test.html ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698