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

Unified Diff: LayoutTests/fast/js/function-dot-arguments-identity.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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: LayoutTests/fast/js/function-dot-arguments-identity.html
diff --git a/LayoutTests/fast/js/function-dot-arguments-identity.html b/LayoutTests/fast/js/function-dot-arguments-identity.html
deleted file mode 100644
index 06c768fe22ac8ba40f1d8f7730d3525d3800cb50..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/function-dot-arguments-identity.html
+++ /dev/null
@@ -1,103 +0,0 @@
-<p>This tests verifies the identity of function.arguments vs 'arguments' used locally.
-</p>
-<pre id="console"></pre>
-
-<script>
-function log(s)
-{
- document.getElementById("console").appendChild(document.createTextNode(s + "\r\n"));
-}
-
-function shouldBe(a, aDescription, b)
-{
- if (a == b) {
- log("PASS: " + aDescription + " should be " + b + " and is.");
- return;
- }
- log("FAIL: " + aDescription + " should be " + b + " but instead is " + a + ".");
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
-}
-
-function getArguments() { return arguments.callee.caller.arguments; }
-
-(function() {
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments",
- false
- );
-})();
-
-(function() {
- shouldBe(
- getArguments() == eval('arguments'),
- "getArguments() == eval('arguments')",
- false
- );
-})();
-
-(function() {
- eval("");
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {eval present}",
- false
- );
-})();
-
-(function() {
- var f = function() { };
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {function present}",
- false
- );
-})();
-
-(function(x) {
- var f = function() { return x; };
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {closure present}",
- false
- );
-})(0);
-
-(function() {
- with ({ }) { };
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {with present}",
- false
- );
-})();
-
-(function() {
- try { } catch(e) { };
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {catch present}",
- false
- );
-})();
-(function() {
- var arguments;
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {var declaration}",
- false
- );
-})();
-
-(function() {
- function arguments() { };
- shouldBe(
- getArguments() == arguments,
- "getArguments() == arguments {function declaration}",
- false
- );
-})();
-</script>

Powered by Google App Engine
This is Rietveld 408576698