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

Unified Diff: chrome/test/data/webui/array_data_model_test.html

Issue 17315020: Port passing closure tests for cr.ui framework to browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback fixes. Created 7 years, 6 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
Index: chrome/test/data/webui/array_data_model_test.html
diff --git a/ui/webui/resources/js/cr/ui/array_data_model_test.html b/chrome/test/data/webui/array_data_model_test.html
similarity index 84%
rename from ui/webui/resources/js/cr/ui/array_data_model_test.html
rename to chrome/test/data/webui/array_data_model_test.html
index ed6e44f28a7349b34b806f9edf97667f58994506..9f1b5cb2ad8c8da1382adcbd566c0f7759cd413d 100644
--- a/ui/webui/resources/js/cr/ui/array_data_model_test.html
+++ b/chrome/test/data/webui/array_data_model_test.html
@@ -1,16 +1,7 @@
<!DOCTYPE html>
<html>
<head>
-<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js"></script>
-<script src="../../cr.js"></script>
-<script src="../event_target.js"></script>
-<script src="array_data_model.js"></script>
-<script>
-
-goog.require('goog.testing.jsunit');
-
-</script>
-
+<script src="webui_resource_test.js"></script>
</head>
<body>
@@ -38,7 +29,7 @@ function testPush() {
var a = m.slice();
assertArrayEquals([0, 1, 2, 3, 4], a);
- assertEquals('The splice event should only fire once', 1, count);
+ assertEquals(1, count, 'The splice event should only fire once');
}
function testSplice() {
« no previous file with comments | « no previous file | chrome/test/data/webui/event_target_test.html » ('j') | chrome/test/data/webui/event_target_test.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698