| Index: chrome/test/data/webui/assertions.js
|
| diff --git a/chrome/test/data/webui/assertions.js b/chrome/test/data/webui/assertions.js
|
| index b7f62f5976b961dffc1794295bf8956cc40e398c..daf18735bcd909b7c3f4d4d1aa92395ae06d242e 100644
|
| --- a/chrome/test/data/webui/assertions.js
|
| +++ b/chrome/test/data/webui/assertions.js
|
| @@ -23,7 +23,8 @@ function testTwoExpects() {
|
| }
|
|
|
| TEST_F('WebUIAssertionsTest', 'testTwoExpects', function() {
|
| - var result = runTest(testTwoExpects, []);
|
| + var result = runTestFunction('testTwoExpects', testTwoExpects, []);
|
| + resetTestState();
|
|
|
| expectFalse(result[0]);
|
| expectTrue(!!result[1].match(/expectTrue\(false\): false/));
|
| @@ -41,7 +42,9 @@ function testCallTestTwice() {
|
| }
|
|
|
| TEST_F('WebUIAssertionsTest', 'testCallTestTwice', function() {
|
| - var result = runTest(testCallTestTwice, []);
|
| + var result = runTestFunction('testCallTestTwice', testCallTestTwice, []);
|
| + resetTestState();
|
| +
|
| expectFalse(result[0]);
|
| expectEquals(2, result[1].match(
|
| /expectTrue\(false, 'message1'\): message1: false/g).length);
|
| @@ -55,7 +58,10 @@ function testConstructMessage() {
|
| }
|
|
|
| TEST_F('WebUIAssertionsTest', 'testConstructedMessage', function() {
|
| - var result = runTest(testConstructMessage, []);
|
| + var result = runTestFunction(
|
| + 'testConstructMessage', testConstructMessage, []);
|
| + resetTestState();
|
| +
|
| expectEquals(
|
| 1, result[1].match(/assertTrue\(false, message\): 1 2: false/g).length);
|
| });
|
|
|