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

Side by Side 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 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <p>
2 This page tests exceptions thrown from 'new' expressions. If the test passes,
3 you'll see a series of PASS messages below.
4 </p>
5 <pre id="console"></pre>
6
7 <script>
8 function log(s)
9 {
10 document.getElementById("console").appendChild(document.createTextNode(s + " \n"));
11 }
12
13 function shouldBe(a, aDescription, b)
14 {
15 if (a == b) {
16 log("PASS: " + aDescription + " should be '" + String(b) + "' and is.");
17 return;
18 }
19
20 log ("FAIL: " + aDescription + " should be '" + String(b) + "' but instead i s '" + String(a) + "'.");
21 }
22
23 if (window.testRunner)
24 testRunner.dumpAsText();
25
26 (function () {
27 try {
28 var f;
29 new f;
30 } catch(e1) {
31 shouldBe(e1, "e1", "TypeError: 'undefined' is not a constructor (evaluat ing 'new f')");
32 }
33 })();
34
35 (function () {
36 try {
37 var f;
38 var g;
39 new f(g());
40 } catch(e2) {
41 shouldBe(e2, "e2", "TypeError: 'undefined' is not a function (evaluating 'g()')");
42 }
43 })();
44 </script>
OLDNEW
« 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