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

Unified Diff: third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new.html

Issue 1471253002: Remove LayoutTests that test un-spec'ed TypeError message printed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new.html
diff --git a/third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new.html b/third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new.html
deleted file mode 100644
index 992405107acc918cf251805555e1ebc4a5c61a7c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<p>
-This page tests exceptions thrown from 'new' expressions. If the test passes,
-you'll see a series of PASS messages below.
-</p>
-<pre id="console"></pre>
-
-<script>
-function log(s)
-{
- document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
-}
-
-function shouldBe(a, aDescription, b)
-{
- if (a == b) {
- log("PASS: " + aDescription + " should be '" + String(b) + "' and is.");
- return;
- }
-
- log ("FAIL: " + aDescription + " should be '" + String(b) + "' but instead is '" + String(a) + "'.");
-}
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-(function () {
- try {
- var f;
- new f;
- } catch(e1) {
- shouldBe(e1, "e1", "TypeError: 'undefined' is not a constructor (evaluating 'new f')");
- }
-})();
-
-(function () {
- try {
- var f;
- var g;
- new f(g());
- } catch(e2) {
- shouldBe(e2, "e2", "TypeError: 'undefined' is not a function (evaluating 'g()')");
- }
-})();
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/js/exception-thrown-from-new-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698