Chromium Code Reviews

Unified Diff: chrome/test/data/webui/sample_pass.js

Issue 7087014: Support automatic javascript test registry in gtest when creating WebUI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments about indices, and fixed set_add to take separate args; not array. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/test/data/webui/sample_pass.js
diff --git a/chrome/test/data/webui/sample_pass.js b/chrome/test/data/webui/sample_pass.js
new file mode 100644
index 0000000000000000000000000000000000000000..ca9b88c4829bfd8a7fc607c3fba8f6f05573fe7d
--- /dev/null
+++ b/chrome/test/data/webui/sample_pass.js
@@ -0,0 +1,17 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Sample tests that exercise the test JS library and show how this framework
+// could be used to test the downloads page.
+function testAssertFalse() {
+ assertFalse(false);
+}
+
+function testAssertTrue() {
+ assertTrue(true);
+}
+
+function testAssertEquals() {
+ assertEquals(5, 5, "fives");
+}

Powered by Google App Engine