summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/array-proto-func-length-getter-except.html
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bug 55994 - Functions on Array.prototype should check length first.barraclough@apple.com2011-03-091-0/+13
These methods are designed to work on generic objects too, and if 'length' is a getter that throws an exception, ensure this is correctly thrown (even if other exceptions would be thrown, too). Reviewed by Sam Weinig Source/JavaScriptCore: Make the length check the first thing we do. This change shows a progression on SunSpider on my machine, but this is likely bogus. * runtime/ArrayPrototype.cpp: (JSC::arrayProtoFuncToString): (JSC::arrayProtoFuncToLocaleString): (JSC::arrayProtoFuncJoin): (JSC::arrayProtoFuncPop): (JSC::arrayProtoFuncPush): (JSC::arrayProtoFuncReverse): (JSC::arrayProtoFuncShift): (JSC::arrayProtoFuncSlice): (JSC::arrayProtoFuncSort): (JSC::arrayProtoFuncSplice): (JSC::arrayProtoFuncUnShift): (JSC::arrayProtoFuncFilter): (JSC::arrayProtoFuncMap): (JSC::arrayProtoFuncEvery): (JSC::arrayProtoFuncForEach): (JSC::arrayProtoFuncSome): (JSC::arrayProtoFuncReduce): (JSC::arrayProtoFuncReduceRight): (JSC::arrayProtoFuncIndexOf): (JSC::arrayProtoFuncLastIndexOf): LayoutTests: Added test cases. * fast/js/array-proto-func-length-getter-except-expected.txt: Added. * fast/js/array-proto-func-length-getter-except.html: Added. * fast/js/script-tests/array-proto-func-length-getter-except.js: Added. (lengthGetter): (test): git-svn-id: svn://svn.chromium.org/blink/trunk@80621 bbb929c8-8fbe-4397-9dbb-9b2b20218538