Commit 56865ec7 authored by Alexey Kozyatinskiy's avatar Alexey Kozyatinskiy Committed by Commit Bot

DevTools: prepare console wpt tests for V8 roll

V8 roll will include console.timeLog implementation.

TBR=dgozman@chromium.org

Bug: chromium:854474
Change-Id: I3669e7cd82e1c83689f91a297a81c7324fe6db7e
Reviewed-on: https://chromium-review.googlesource.com/1251749
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: default avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595112}
parent 131b08e9
......@@ -2790,6 +2790,11 @@ crbug.com/800898 external/wpt/FileAPI/url/url-with-xhr.any.worker.html [ Pass Fa
crbug.com/800898 external/wpt/FileAPI/url/url-in-tags-revoke.window.html [ Timeout ]
crbug.com/800898 external/wpt/workers/worker-from-blob-url.window.html [ Timeout ]
crbug.com/854474 external/wpt/console/console-label-conversion.any.html [ Skip ]
crbug.com/854474 external/wpt/console/console-label-conversion.any.worker.html [ Skip ]
crbug.com/854474 external/wpt/console/idlharness.any.html [ Skip ]
crbug.com/854474 external/wpt/console/idlharness.any.worker.html [ Skip ]
crbug.com/849737 virtual/mojo-blob-urls/external/wpt/FileAPI/url/sandboxed-iframe.html [ Pass Timeout ]
crbug.com/849737 virtual/mojo-blob-urls/external/wpt/FileAPI/url/url-format.any.html [ Pass Timeout ]
crbug.com/849737 virtual/mojo-blob-urls/external/wpt/FileAPI/url/url-format.any.worker.html [ Pass Timeout ]
......
......@@ -23,14 +23,14 @@ FAIL console.time() throws exceptions generated by erroneous label.toString() co
}
});
}" did not throw
FAIL console.timeLog()'s label gets converted to string via label.toString() when label is an object console[method] is not a function
FAIL console.timeLog()'s label gets converted to string via label.toString() when label is an object assert_true: timeLog() must call toString() on label when label is an object expected true got false
FAIL console.timeLog() throws exceptions generated by erroneous label.toString() conversion assert_throws: timeLog must re-throw any exceptions thrown by label.toString() conversion function "() => {
console[method]({
toString() {
throw new Error('conversion error');
}
});
}" threw object "TypeError: console[method] is not a function" ("TypeError") expected object "[object Object]" ("Error")
}" did not throw
FAIL console.timeEnd()'s label gets converted to string via label.toString() when label is an object assert_true: timeEnd() must call toString() on label when label is an object expected true got false
FAIL console.timeEnd() throws exceptions generated by erroneous label.toString() conversion assert_throws: timeEnd must re-throw any exceptions thrown by label.toString() conversion function "() => {
console[method]({
......
......@@ -23,14 +23,14 @@ FAIL console.time() throws exceptions generated by erroneous label.toString() co
}
});
}" did not throw
FAIL console.timeLog()'s label gets converted to string via label.toString() when label is an object console[method] is not a function
FAIL console.timeLog()'s label gets converted to string via label.toString() when label is an object assert_true: timeLog() must call toString() on label when label is an object expected true got false
FAIL console.timeLog() throws exceptions generated by erroneous label.toString() conversion assert_throws: timeLog must re-throw any exceptions thrown by label.toString() conversion function "() => {
console[method]({
toString() {
throw new Error('conversion error');
}
});
}" threw object "TypeError: console[method] is not a function" ("TypeError") expected object "[object Object]" ("Error")
}" did not throw
FAIL console.timeEnd()'s label gets converted to string via label.toString() when label is an object assert_true: timeEnd() must call toString() on label when label is an object expected true got false
FAIL console.timeEnd() throws exceptions generated by erroneous label.toString() conversion assert_throws: timeEnd must re-throw any exceptions thrown by label.toString() conversion function "() => {
console[method]({
......
......@@ -17,7 +17,7 @@ FAIL console namespace: operation group(any...) assert_equals: operation has wro
FAIL console namespace: operation groupCollapsed(any...) assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation groupEnd() assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation time(DOMString) assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation timeLog(DOMString, any...) assert_own_property: namespace object missing operation "timeLog" expected property "timeLog" missing
FAIL console namespace: operation timeLog(DOMString, any...) assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation timeEnd(DOMString) assert_equals: operation has wrong .length expected 0 but got 1
Harness: the test ran to completion.
......@@ -17,7 +17,7 @@ FAIL console namespace: operation group(any...) assert_equals: operation has wro
FAIL console namespace: operation groupCollapsed(any...) assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation groupEnd() assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation time(DOMString) assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation timeLog(DOMString, any...) assert_own_property: namespace object missing operation "timeLog" expected property "timeLog" missing
FAIL console namespace: operation timeLog(DOMString, any...) assert_equals: operation has wrong .length expected 0 but got 1
FAIL console namespace: operation timeEnd(DOMString) assert_equals: operation has wrong .length expected 0 but got 1
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment