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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/promise-rejection-events-console.html

Issue 2150993004: [DevTools] Remove V8Debugger::consoleMessagesCount. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-navigation.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 'use strict'; 6 'use strict';
7 async_test(function(t) { 7 async_test(function(t) {
8 var e = new Error('e'); 8 var e = new Error('e');
9 var p = Promise.reject(e); 9 var p = Promise.reject(e);
10 10
(...skipping 14 matching lines...) Expand all
25 evt.preventDefault(); 25 evt.preventDefault();
26 }; 26 };
27 27
28 window.onrejectionhandled = function(evt) { 28 window.onrejectionhandled = function(evt) {
29 t.step(function() { 29 t.step(function() {
30 assert_false(evt.cancelable); 30 assert_false(evt.cancelable);
31 assert_equals(evt.promise, p); 31 assert_equals(evt.promise, p);
32 assert_equals(evt.reason, e); 32 assert_equals(evt.reason, e);
33 }); 33 });
34 setTimeout(function() { 34 setTimeout(function() {
35 if (window.internals) {
36 t.step(function() {
37 assert_equals(internals.numberOfConsoleMessages(document), 0);
38 });
39 }
40 t.done(); 35 t.done();
41 }, 10); 36 }, 10);
42 }; 37 };
43 }, 'evt.preventDefault() should suppress console output.'); 38 }, 'evt.preventDefault() should suppress console output.');
44 </script> 39 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-navigation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698