summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/console-non-string-values.html
Commit message (Collapse)AuthorAgeFilesLines
* Move fast/js/resources files to resources.ojan@chromium.org2013-11-051-1/+1
| | | | | | | | | | | | | | | | Move fast/js/resources/js-test-pre.js and fast/js/resources/leak-check.js to the root resources directory. They're used mostly by tests outside of fast/js. Also, rename js-test-pre.js to js-test.js now that there's no js-test-post.js. TBR because it's impossible to review 6819 file changes in rietveld. TBR=eae@chromium.org Review URL: https://codereview.chromium.org/58533003 git-svn-id: svn://svn.chromium.org/blink/trunk@161296 bbb929c8-8fbe-4397-9dbb-9b2b20218538
* Delete js-test-post.js.ojan@chromium.org2013-11-021-1/+0
| | | | | | | | | | | There turn out to be three copies of js-test-pre/post in the tree. This deletes the one used by all but ~100 tests. TBR=eae@chromium.org Review URL: https://codereview.chromium.org/48903019 git-svn-id: svn://svn.chromium.org/blink/trunk@161210 bbb929c8-8fbe-4397-9dbb-9b2b20218538
* JS Test Harness: Make successfullyParsed optionalarv@chromium.org2011-10-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* JS Test Harness: Insert the stylesheet dynamicallyarv@chromium.org2011-10-191-1/+0
| | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=70432 Reviewed by Ojan Vafai. This injects the js-test-style.css file dynamically so that the test files can be simpler. This patch also removes the markup from the existing files in LayoutTests/fast/ * fast/*.html: Remove <link rel=:"stylesheet" href="...js-test-style.css"> * fast/js/resources/js-test-pre.js: Inject the stylesheet dynamically. git-svn-id: svn://svn.chromium.org/blink/trunk@97881 bbb929c8-8fbe-4397-9dbb-9b2b20218538
* JS Test Harness: Make console and description elements optional in the HTMLarv@chromium.org2011-10-151-2/+0
| | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=69881 Reviewed by Darin Adler. This makes the description element and the console element in the HTML files optional and these gets created as needed by the call to description() and debug(). This removes the description and console elements from a lots of files in LayoutTests/fast/ * fast/js/resources/js-test-pre.js: git-svn-id: svn://svn.chromium.org/blink/trunk@97566 bbb929c8-8fbe-4397-9dbb-9b2b20218538
* WebCore:dglazkov@chromium.org2009-03-121-0/+18
2009-03-12 Dimitri Glazkov <dglazkov@chromium.org> Reviewed by Simon Fraser. https://bugs.webkit.org/show_bug.cgi?id=24496 Fix console logging of non-string values by coercing the argument to a string. Test: fast/js/console-non-string-values.html * bindings/js/ScriptValue.cpp: Removed PlatformString include. * bindings/js/ScriptValue.h: Added toString method. (WebCore::ScriptValue::toString): * page/Console.cpp: (WebCore::getFirstArgumentAsString): Changed firstArgumentAsString method to use ScriptValue::toString. (WebCore::Console::addMessage): added extra ScriptState argument to callsite. (WebCore::Console::count): Ditto. LayoutTests: 2009-03-12 Simon Fraser <simon.fraser@apple.com> Reviewed by Dimitri Glazkov. https://bugs.webkit.org/show_bug.cgi?id=24496 Test for logging non-string values. * fast/js/console-non-string-values-expected.txt: Added. * fast/js/console-non-string-values.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@41640 bbb929c8-8fbe-4397-9dbb-9b2b20218538