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

Unified Diff: test/webkit/fast/js/toString-overrides-expected.txt

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
Index: test/webkit/fast/js/toString-overrides-expected.txt
diff --git a/test/webkit/arguments-bad-index-expected.txt b/test/webkit/fast/js/toString-overrides-expected.txt
similarity index 73%
copy from test/webkit/arguments-bad-index-expected.txt
copy to test/webkit/fast/js/toString-overrides-expected.txt
index 929537823ba09f0a0dc53891aea0bf23fe9014e8..6bf5ae57ba1c1cf57a31153ffaf72c1bb03c62ea 100644
--- a/test/webkit/arguments-bad-index-expected.txt
+++ b/test/webkit/fast/js/toString-overrides-expected.txt
@@ -21,15 +21,18 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-This test checks whether arguments crashes when passed a bad index.
+This test checks for regression against 4147: Array.toString() and toLocaleString() improvements from KDE KJS.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS indexArguments(1, "a") is "a"
-PASS indexArguments("1 ", "a") is undefined
-PASS indexArguments(0xDEADBEEF) is undefined
-PASS indexArguments(0xFFFFFFFF) is undefined
+PASS [1].toString() is '1'
+PASS [1].toLocaleString() is 'toLocaleString'
+FAIL [1].toLocaleString() should be 1. Threw exception TypeError: Property 'toLocaleString' of object [object Number] is not a function
+PASS [/r/].toString() is 'toString2'
+PASS [/r/].toLocaleString() is 'toLocaleString2'
+FAIL [/r/].toLocaleString() should be toString2. Threw exception TypeError: Property 'toLocaleString' of object [object RegExp] is not a function
+PASS caught is true
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « test/webkit/fast/js/toString-overrides.js ('k') | test/webkit/fast/regex/alternative-length-miscalculation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698