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

Unified Diff: test/webkit/fast/js/kde/Error.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/Date-setYear-expected.txt ('k') | test/webkit/fast/js/kde/Error-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/Error.js
diff --git a/test/webkit/regexp-extended-characters-more.js b/test/webkit/fast/js/kde/Error.js
similarity index 72%
copy from test/webkit/regexp-extended-characters-more.js
copy to test/webkit/fast/js/kde/Error.js
index 9cdf6be40e5e624ad15bf762cf96ff0e5b19efdd..6ecd5c3c8ff7a7c0edae78adddbdf1eec0f93ea1 100644
--- a/test/webkit/regexp-extended-characters-more.js
+++ b/test/webkit/fast/js/kde/Error.js
@@ -21,10 +21,15 @@
// (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 a few cases of extended (> 127) characters in repeat regular expressions."
-);
+description("KDE JS Test");
+// Error constructor called as a function
+shouldBe("Error('msg').message", "'msg'");
-shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*/, "")', '"foo\\xa0\\xa0\\xa0"');
-shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0+/, "")', '"foo"');
-shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*$/, "")', '"foo"');
+// Error Constructor called as part of a new expression
+shouldBe("(new Error('msg')).message", "'msg'");
+// moved to evil-n.js shouldBeUndefined("(new Error()).message");
+shouldBe("(new Error('msg')).name", "'Error'");
+
+shouldBe("Object.prototype.toString.apply(Error())", "'[object Error]'");
+shouldBe("Object.prototype.toString.apply(Error)", "'[object Function]'");
+shouldBe("Object.prototype.toString.apply(EvalError)", "'[object Function]'");
« no previous file with comments | « test/webkit/fast/js/kde/Date-setYear-expected.txt ('k') | test/webkit/fast/js/kde/Error-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698