2008-07-02 Cameron Zwarich <cwzwarich@uwaterloo.ca>
authorcwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jul 2008 10:08:22 +0000 (10:08 +0000)
committercwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jul 2008 10:08:22 +0000 (10:08 +0000)
        Reviewed by Oliver.

        Add a test for a situation mentioned in:

        Bug 19523: delete does not work in javascript
        <https://bugs.webkit.org/show_bug.cgi?id=19523>

        * fast/js/delete-multiple-global-blocks-expected.txt: Added.
        * fast/js/delete-multiple-global-blocks.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34952 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/js/delete-multiple-global-blocks-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/delete-multiple-global-blocks.html [new file with mode: 0644]

index b0c81df093929687551b111391b1a9169c908912..5c0469cf153390300cdb69e1167434df88ab7e0a 100644 (file)
@@ -1,3 +1,15 @@
+2008-07-02  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
+
+        Reviewed by Oliver.
+
+        Add a test for a situation mentioned in:
+
+        Bug 19523: delete does not work in javascript
+        <https://bugs.webkit.org/show_bug.cgi?id=19523>
+
+        * fast/js/delete-multiple-global-blocks-expected.txt: Added.
+        * fast/js/delete-multiple-global-blocks.html: Added.
+
 2008-07-01  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Geoff Garen.
diff --git a/LayoutTests/fast/js/delete-multiple-global-blocks-expected.txt b/LayoutTests/fast/js/delete-multiple-global-blocks-expected.txt
new file mode 100644 (file)
index 0000000..68e8c87
--- /dev/null
@@ -0,0 +1,10 @@
+Tests whether delete works properly across multiple global blocks in the presence of redefined variables.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS test() is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/js/delete-multiple-global-blocks.html b/LayoutTests/fast/js/delete-multiple-global-blocks.html
new file mode 100644 (file)
index 0000000..d606dbd
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="resources/js-test-style.css">
+<script src="resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script>
+description(
+"Tests whether delete works properly across multiple global blocks in the presence of redefined variables."
+);
+
+a = 1;
+</script>
+<script>
+var a;
+delete a;
+
+function test()
+{
+    return this.a ? true : false;
+}
+
+shouldBeFalse("test()");
+
+var successfullyParsed = true;
+</script>
+<script src="resources/js-test-post.js"></script>
+</body>
+</html>