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..1b2b22da066e3981838f4d758e1416b5d6570f7d |
--- /dev/null |
+++ b/chrome/test/data/webui/sample_pass.js |
@@ -0,0 +1,27 @@ |
+// 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. |
+var helper = { |
+ helpFunc: function helpFunc() { |
+ assertTrue(true); |
+ } |
+}; |
+ |
+function testAssertFalse() { |
+ assertFalse(false); |
+} |
+ |
+function testHelper() { |
+ helper.helpFunc(false); |
+} |
+ |
+function testAssertTrue() { |
+ assertTrue(true); |
+} |
+ |
+function testAssertEquals() { |
+ assertEquals(5, 5, "fives"); |
+} |