From d7f8875abc4049f55480b0ae920ee3b0df985ac2 Mon Sep 17 00:00:00 2001 From: "arv@chromium.org" Date: Tue, 25 Oct 2011 23:10:43 +0000 Subject: JS Test Harness: Make successfullyParsed optional https://bugs.webkit.org/show_bug.cgi?id=70784 Reviewed by Ojan Vafai. Tools: * Scripts/make-new-script-test: (writeTestFile): Update the template for script tests. LayoutTests: This makes "successfullyParsed = true" optional in favor of tracking syntax errors using window.onerror. * fast/*: Remove successfullyParsed. * fast/dom/Window/new-window-opener.html: Cleanup. * fast/dom/Window/resources/window-appendages-cleared-results.html: * fast/dom/Window/webkitConvertPoint.html: Ditto. * fast/dom/Window/webkitConvertPointUpdateLayout.html: Ditto. * fast/js/kde/evil-n.html: This is now a normal test since it is not supposed to fail. * fast/js/kde/garbage-n-expected.txt: * fast/js/kde/garbage-n.html: Use shouldHaveHadError instead of js-test-post-n.js * fast/js/kde/string-1-n.html: Ditto. * fast/js/kde/string-2-n.html: Ditto. * fast/js/resources/js-test-post-async.js: Ensure we didn't get an error. * fast/js/resources/js-test-post-function.js: Ditto. * fast/js/resources/js-test-post-n.js: Removed. * fast/js/resources/js-test-pre.js: Added shouldHaveHadError function that can be used to assert that the error message is what was expected. Ensure we didn't get an error in finistJSTest. git-svn-id: svn://svn.chromium.org/blink/trunk@98407 bbb929c8-8fbe-4397-9dbb-9b2b20218538 --- .../fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js') diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js index dbc7edd..6a5c0a8 100644 --- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js +++ b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImageFromRect.js @@ -19,5 +19,3 @@ shouldBe("ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "unde shouldBe("ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined"); shouldBe("ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined"); shouldBe("ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined"); - -var successfullyParsed = true; -- cgit v1.1