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

Unified Diff: test/webkit/fast/js/kde/Boolean.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/Array-expected.txt ('k') | test/webkit/fast/js/kde/Boolean-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/Boolean.js
diff --git a/test/webkit/array-reset-large-index.js b/test/webkit/fast/js/kde/Boolean.js
similarity index 79%
copy from test/webkit/array-reset-large-index.js
copy to test/webkit/fast/js/kde/Boolean.js
index 532d9f0a8e5cea6f866627f11262ac415a07faac..dbc117a72644dbc80249522ff368287fc5b4c5a1 100644
--- a/test/webkit/array-reset-large-index.js
+++ b/test/webkit/fast/js/kde/Boolean.js
@@ -21,15 +21,12 @@
// (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."
-);
-
-var array = [];
-array[10001] = 0;
-array[10001] = 5;
-array[10002] = "a";
-array[10002] = "b";
-
-shouldBe('array[10001]', '5');
-shouldBe('array[10002]', '"b"');
+description("KDE JS Test");
+shouldBe("Boolean()", "false");
+shouldBe("Boolean(true)", "true");
+shouldBe("Boolean(false)", "false");
+shouldBe("(new Boolean(true)).valueOf()", "true");
+shouldBe("(new Boolean(false)).valueOf()", "false");
+shouldBe("(new Boolean(Boolean(true))).valueOf()", "true");
+shouldBeTrue("true.valueOf() === true");
+shouldBeTrue("false.toString() === 'false'");
« no previous file with comments | « test/webkit/fast/js/kde/Array-expected.txt ('k') | test/webkit/fast/js/kde/Boolean-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698