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

Unified Diff: test/webkit/fast/js/kde/assignments.js

Issue 21070002: 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/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");
« no previous file with comments | « test/webkit/fast/js/kde/arguments-scope-expected.txt ('k') | test/webkit/fast/js/kde/assignments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698