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

Unified Diff: test/webkit/resources/standalone-pre.js

Issue 20280003: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « test/webkit/fast/regex/unicodeCaseInsensitive-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/resources/standalone-pre.js
diff --git a/test/webkit/resources/standalone-pre.js b/test/webkit/resources/standalone-pre.js
index f1cbe9f10f85bfe4636268188fff157aa3b8ba3f..5f164dbcb54029f941b1f2117f6b0f87b22e8a36 100644
--- a/test/webkit/resources/standalone-pre.js
+++ b/test/webkit/resources/standalone-pre.js
@@ -22,11 +22,15 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var wasPostTestScriptParsed = false;
-var errorMessage;
+
+function removeLink(text)
+{
+ return text.replace(/<a[^>]*>/g, "").replace(/<\/a>/g, "");
+}
function description(msg)
{
- print(msg);
+ print(removeLink(msg));
print("\nOn success, you will see a series of \"PASS\" messages, followed by \"TEST COMPLETE\".\n");
print();
}
@@ -48,7 +52,6 @@ function testPassed(msg)
function testFailed(msg)
{
- errorMessage = msg;
print("FAIL", escapeString(msg));
}
@@ -173,9 +176,7 @@ function shouldThrow(_a, _e)
function isSuccessfullyParsed()
{
- // FIXME: Remove this and only report unexpected syntax errors.
- if (!errorMessage)
- successfullyParsed = true;
+ successfullyParsed = true;
shouldBeTrue("successfullyParsed");
debug("\nTEST COMPLETE\n");
}
« no previous file with comments | « test/webkit/fast/regex/unicodeCaseInsensitive-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698