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

Unified Diff: test/webkit/fast/js/kde/prototype_proto.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/prototype_proto.js
diff --git a/test/webkit/array-index-immediate-types.js b/test/webkit/fast/js/kde/prototype_proto.js
similarity index 71%
copy from test/webkit/array-index-immediate-types.js
copy to test/webkit/fast/js/kde/prototype_proto.js
index 7bacc9d0fc2751ed6b0f943e64a9993226b10d1c..f956d94cd73b109e22faef5daea3913897c872f9 100644
--- a/test/webkit/array-index-immediate-types.js
+++ b/test/webkit/fast/js/kde/prototype_proto.js
@@ -21,24 +21,13 @@
// (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 checks the behaviour of indexing an Array with immediate types."
-);
-
-var array = ["Zero", "One"];
-
-shouldBe("array[0]", '"Zero"');
-shouldBe("array[null]", "undefined");
-shouldBe("array[undefined]", "undefined");
-shouldBe("array[true]", "undefined");
-shouldBe("array[false]", "undefined");
-
-function putSelf(array, index)
-{
- index = index << 0;
- array[index] = index;
- return true;
-}
-
-shouldBeTrue("putSelf([0], 0);");
-shouldBeTrue("putSelf([0], 1/9);");
+description("KDE JS Test");
+shouldBe("Object.prototype.__proto__ == Object.prototype","false");
+shouldBe("Function.prototype.__proto__","Object.prototype");
+shouldBe("Array.prototype.__proto__","Object.prototype");
+shouldBe("String.prototype.__proto__","Object.prototype");
+shouldBe("Boolean.prototype.__proto__","Object.prototype");
+shouldBe("Number.prototype.__proto__","Object.prototype");
+shouldBe("Date.prototype.__proto__","Object.prototype");
+shouldBe("RegExp.prototype.__proto__","Object.prototype");
+shouldBe("Error.prototype.__proto__","Object.prototype");
« no previous file with comments | « test/webkit/fast/js/kde/prototype_length-expected.txt ('k') | test/webkit/fast/js/kde/prototype_proto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698