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

Unified Diff: test/webkit/fast/js/kde/conditional.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/completion-expected.txt ('k') | test/webkit/fast/js/kde/conditional-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/conditional.js
diff --git a/test/webkit/array-tostring-and-join.js b/test/webkit/fast/js/kde/conditional.js
similarity index 83%
copy from test/webkit/array-tostring-and-join.js
copy to test/webkit/fast/js/kde/conditional.js
index b4fdb51b47f0b450a53fc725a133c27a21c5375d..ee9c0bf867121a93d143e8074ca4b0871d7cdfc5 100644
--- a/test/webkit/array-tostring-and-join.js
+++ b/test/webkit/fast/js/kde/conditional.js
@@ -21,16 +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 that toString and join share the same HashSet for visited elements."
-
-);
-
-var arr = [1, 2];
-var obj = {};
-obj.__proto__.toString = function() { return "*" + arr + "*"; }
-arr[2] = arr;
-arr[3] = obj;
-
-shouldBe("arr.join()", "'1,2,,**'");
+description("KDE JS Test");
+shouldBe("true ? 1 : 2", "1");
+shouldBe("false ? 1 : 2", "2");
+shouldBe("'abc' ? 1 : 2", "1");
+shouldBe("null ? 1 : 2", "2");
+shouldBe("undefined ? 1 : 2", "2");
+var a = 1;
+if ( undefined )
+ a = 2;
+shouldBe("/*var a=1;if (undefined) a = 2;*/ a", "1");
« no previous file with comments | « test/webkit/fast/js/kde/completion-expected.txt ('k') | test/webkit/fast/js/kde/conditional-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698