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

Unified Diff: LayoutTests/fast/performance/performance-measure-exceptions-expected.txt

Issue 22311011: Improve 'performance.{mark,measure} exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
Index: LayoutTests/fast/performance/performance-measure-exceptions-expected.txt
diff --git a/LayoutTests/fast/performance/performance-measure-exceptions-expected.txt b/LayoutTests/fast/performance/performance-measure-exceptions-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b793d79816c4421d89464738b06d43c6b00c3df4
--- /dev/null
+++ b/LayoutTests/fast/performance/performance-measure-exceptions-expected.txt
@@ -0,0 +1,21 @@
+This tests that 'performance.measure' throws exceptions with reasonable messages.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS window.performance.measure("DoesNotExist", "AlsoDoesNotExist") threw exception SyntaxError: The mark 'AlsoDoesNotExist' does not exist..
+PASS window.performance.measure("measuring", 'unloadEventStart', "mark") threw exception InvalidAccessError: 'unloadEventStart' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'unloadEventEnd', "mark") threw exception InvalidAccessError: 'unloadEventEnd' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'redirectStart', "mark") threw exception InvalidAccessError: 'redirectStart' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'redirectEnd', "mark") threw exception InvalidAccessError: 'redirectEnd' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'secureConnectionStart', "mark") threw exception InvalidAccessError: 'secureConnectionStart' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'domInteractive', "mark") threw exception InvalidAccessError: 'domInteractive' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'domContentLoadedEventStart', "mark") threw exception InvalidAccessError: 'domContentLoadedEventStart' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'domContentLoadedEventEnd', "mark") threw exception InvalidAccessError: 'domContentLoadedEventEnd' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'domComplete', "mark") threw exception InvalidAccessError: 'domComplete' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'loadEventStart', "mark") threw exception InvalidAccessError: 'loadEventStart' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS window.performance.measure("measuring", 'loadEventEnd', "mark") threw exception InvalidAccessError: 'loadEventEnd' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/performance/performance-measure-exceptions.html ('k') | Source/core/page/PerformanceUserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698