Index: test/webkit/fast/js/kde/assignments.js |
diff --git a/test/webkit/array-reset-large-index.js b/test/webkit/fast/js/kde/assignments.js |
similarity index 78% |
copy from test/webkit/array-reset-large-index.js |
copy to test/webkit/fast/js/kde/assignments.js |
index 532d9f0a8e5cea6f866627f11262ac415a07faac..2cb49cf933dca262543340a92486f1f1622b75b0 100644 |
--- a/test/webkit/array-reset-large-index.js |
+++ b/test/webkit/fast/js/kde/assignments.js |
@@ -21,15 +21,16 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-description( |
-"This test puts an item in a big index and then tries to change it. It shoudl change successfully." |
-); |
+description("KDE JS Test"); |
+// simple assignment |
+shouldBe("var i = 1; i", "1"); |
+shouldBe("j = k = 2", "2"); |
+shouldBeUndefined("var i; i"); |
-var array = []; |
-array[10001] = 0; |
-array[10001] = 5; |
-array[10002] = "a"; |
-array[10002] = "b"; |
- |
-shouldBe('array[10001]', '5'); |
-shouldBe('array[10002]', '"b"'); |
+// compound assignments |
+shouldBe("var i = 1; i <<= 2", "4"); |
+shouldBe("var i = 8; i >>= 1", "4"); |
+shouldBe("var i = 1; i >>= 2", "0"); |
+shouldBe("var i = -8; i >>= 24", "-1"); |
+shouldBe("var i = 8; i >>>= 2", "2"); |
+shouldBe("var i = -8; i >>>= 24", "255"); |