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

Unified Diff: test/webkit/fast/js/kde/evil-n.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/eval-expected.txt ('k') | test/webkit/fast/js/kde/evil-n-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/evil-n.js
diff --git a/test/webkit/mod-by-zero.js b/test/webkit/fast/js/kde/evil-n.js
similarity index 90%
copy from test/webkit/mod-by-zero.js
copy to test/webkit/fast/js/kde/evil-n.js
index e3c51ddf04dc320c1b2852cb48206c0638737d08..b9b5cdb3764752c9746689e91f8891ef2bd24d9a 100644
--- a/test/webkit/mod-by-zero.js
+++ b/test/webkit/fast/js/kde/evil-n.js
@@ -21,12 +21,8 @@
// (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 tests that modulo with zero does not crash but returns NaN."
-);
+description("KDE JS Test");
+shouldBe("(new Error()).message", "''");
-function mod(b) {
- return b%b;
-}
-
-shouldBeNaN("mod(0)");
+// the empty match isn't taken in account
+shouldBe("''.split(/.*/).length", "0");
« no previous file with comments | « test/webkit/fast/js/kde/eval-expected.txt ('k') | test/webkit/fast/js/kde/evil-n-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698