Commit c8dfbcd5 authored by Philip Jägenstedt's avatar Philip Jägenstedt Committed by Commit Bot

Sync LayoutTests/resources/ with LayoutTests/external/wpt/resources/

Roll in the most recent version of:
testharness.js, testdriver.js, idlharness.js and webidl2.js

Change-Id: I90d19fcca8d4cd5ef616534da61937f185913085
Reviewed-on: https://chromium-review.googlesource.com/1109514
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569248}
parent 9bfed9c2
CONSOLE ERROR: line 2752: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2752: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2752: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2752: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2748: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2748: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2748: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
CONSOLE ERROR: line 2748: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
PASS SVG <use> shadow trees should not be exposed through custom elements.
......
......@@ -22,8 +22,8 @@ promise_test(async t => {
const idl_array = new IdlArray();
idl_array.add_untested_idls('interface Navigator {};');
idl_array.add_untested_idls('interface WorkerNavigator {};');
idl_array.add_untested_idls('[Exposed=Window] interface Navigator {};');
idl_array.add_untested_idls('[Exposed=Worker] interface WorkerNavigator {};');
idl_array.add_idls(idls);
......
......@@ -10,8 +10,8 @@ promise_test(async t => {
const idl_array = new IdlArray();
idl_array.add_untested_idls('interface Navigator {};');
idl_array.add_untested_idls('interface WorkerNavigator {};');
idl_array.add_untested_idls('[Exposed=Window] interface Navigator {};');
idl_array.add_untested_idls('[Exposed=Worker] interface WorkerNavigator {};');
idl_array.add_idls(idls);
......
......@@ -129,7 +129,7 @@
* https://github.com/WICG/page-lifecycle/blob/master/README.md|Lifecycle API
* for Web Pages}
*
* @returns {Promise} fullfilled after the freeze request is sent, or rejected
* @returns {Promise} fulfilled after the freeze request is sent, or rejected
* in case the WebDriver command errors
*/
freeze: function() {
......@@ -139,7 +139,7 @@
window.test_driver_internal = {
/**
* Triggers a user-initated click
* Triggers a user-initiated click
*
* @param {Element} element - element to be clicked
* @param {{x: number, y: number} coords - viewport coordinates to click at
......@@ -150,7 +150,7 @@
},
/**
* Triggers a user-initated click
* Triggers a user-initiated click
*
* @param {Element} element - element to be clicked
* @param {String} keys - keys to send to the element
......@@ -163,7 +163,7 @@
/**
* Freeze the current page
*
* @returns {Promise} fullfilled after freeze request is sent, otherwise
* @returns {Promise} fulfilled after freeze request is sent, otherwise
* it gets rejected
*/
freeze: function() {
......
......@@ -2403,15 +2403,11 @@ policies and contribution forms [3].
log.removeChild(log.lastChild);
}
var harness_url = get_harness_url();
if (harness_url !== undefined) {
var stylesheet = output_document.createElementNS(xhtml_ns, "link");
stylesheet.setAttribute("rel", "stylesheet");
stylesheet.setAttribute("href", harness_url + "testharness.css");
var heads = output_document.getElementsByTagName("head");
if (heads.length) {
heads[0].appendChild(stylesheet);
}
var stylesheet = output_document.createElementNS(xhtml_ns, "style");
stylesheet.textContent = stylesheetContent;
var heads = output_document.getElementsByTagName("head");
if (heads.length) {
heads[0].appendChild(stylesheet);
}
var status_text_harness = {};
......@@ -2921,16 +2917,6 @@ policies and contribution forms [3].
return undefined;
}
/** Returns the URL path at which the files for testharness.js are assumed to reside (e.g., '/resources/').
The path is derived from inspecting the 'src' of the <script> tag that included 'testharness.js'. */
function get_harness_url()
{
var script_url = get_script_url();
// Exclude the 'testharness.js' file from the returned path, but '+ 1' to include the trailing slash.
return script_url ? script_url.slice(0, script_url.lastIndexOf('/') + 1) : undefined;
}
function supports_post_message(w)
{
var supports;
......@@ -3009,5 +2995,113 @@ policies and contribution forms [3].
test_environment.on_tests_ready();
/**
* Stylesheet
*/
var stylesheetContent = "\
html {\
font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;\
}\
\
#log .warning,\
#log .warning a {\
color: black;\
background: yellow;\
}\
\
#log .error,\
#log .error a {\
color: white;\
background: red;\
}\
\
section#summary {\
margin-bottom:1em;\
}\
\
table#results {\
border-collapse:collapse;\
table-layout:fixed;\
width:100%;\
}\
\
table#results th:first-child,\
table#results td:first-child {\
width:4em;\
}\
\
table#results th:last-child,\
table#results td:last-child {\
width:50%;\
}\
\
table#results.assertions th:last-child,\
table#results.assertions td:last-child {\
width:35%;\
}\
\
table#results th {\
padding:0;\
padding-bottom:0.5em;\
border-bottom:medium solid black;\
}\
\
table#results td {\
padding:1em;\
padding-bottom:0.5em;\
border-bottom:thin solid black;\
}\
\
tr.pass > td:first-child {\
color:green;\
}\
\
tr.fail > td:first-child {\
color:red;\
}\
\
tr.timeout > td:first-child {\
color:red;\
}\
\
tr.notrun > td:first-child {\
color:blue;\
}\
\
.pass > td:first-child, .fail > td:first-child, .timeout > td:first-child, .notrun > td:first-child {\
font-variant:small-caps;\
}\
\
table#results span {\
display:block;\
}\
\
table#results span.expected {\
font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;\
white-space:pre;\
}\
\
table#results span.actual {\
font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;\
white-space:pre;\
}\
\
span.ok {\
color:green;\
}\
\
tr.error {\
color:red;\
}\
\
span.timeout {\
color:red;\
}\
\
span.ok, span.timeout, span.error {\
font-variant:small-caps;\
}\
";
})(this);
// vim: set expandtab shiftwidth=4 tabstop=4:
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