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

Unified Diff: test/webkit/fast/js/kde/literals.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
« no previous file with comments | « test/webkit/fast/js/kde/j-comment-4-expected.txt ('k') | test/webkit/fast/js/kde/literals-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/kde/literals.js
diff --git a/test/webkit/array-reset-large-index.js b/test/webkit/fast/js/kde/literals.js
similarity index 82%
copy from test/webkit/array-reset-large-index.js
copy to test/webkit/fast/js/kde/literals.js
index 532d9f0a8e5cea6f866627f11262ac415a07faac..57cf8cd9198c2b327e5e72faa6fd189d629d81fb 100644
--- a/test/webkit/array-reset-large-index.js
+++ b/test/webkit/fast/js/kde/literals.js
@@ -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.
-description(
-"This test puts an item in a big index and then tries to change it. It shoudl change successfully."
-);
+description("KDE JS Test");
+var x = 0;
+eval("\u0009 \u000B \u000C \u00A0x = 1;");
+shouldBe("x", "1");
-var array = [];
-array[10001] = 0;
-array[10001] = 5;
-array[10002] = "a";
-array[10002] = "b";
+// hex (non-normative)
+shouldBe("0x0", "0");
+shouldBe("0xF", "15");
+shouldBe("0xFF", "255");
-shouldBe('array[10001]', '5');
-shouldBe('array[10002]', '"b"');
+// octal (non-normative)
+shouldBe("01", "1");
+shouldBe("010", "8");
+shouldBe("09", "9");
+shouldBe("019", "19");
« no previous file with comments | « test/webkit/fast/js/kde/j-comment-4-expected.txt ('k') | test/webkit/fast/js/kde/literals-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698