Revision 8ec345bcd24282ce94960fc0b11ca057bec393be authored by Ian Kilpatrick on 27 March 2018, 05:07:50 UTC, committed by Blink WPT Bot on 27 March 2018, 05:15:10 UTC
This implements the LayoutFragment.inlineOffset and LayoutFragment.blockOffset attributes. The tests added simply re-create the reference by setting these two attributes in different text directions and writing modes. Change-Id: I1865403ca12e3b174738ee93320eae5ba16ac292 Bug: 726125 Reviewed-on: https://chromium-review.googlesource.com/971832 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#546018}
1 parent c32afde
console-time-label-conversion.any.js
"use strict";
// https://console.spec.whatwg.org/#timing
test(() => {
let timeLabelToStringCalled = false;
console.time({
toString() {
timeLabelToStringCalled = true;
}
});
assert_true(timeLabelToStringCalled, "toString() must be called on time()'s label when label is an object");
}, "console.time()'s label gets converted to string via label.toString() when label is an object");
test(() => {
let timeEndLabelToStringCalled = false;
console.timeEnd({
toString() {
timeEndLabelToStringCalled = true;
}
});
assert_true(timeEndLabelToStringCalled, "toString() must be called on timeEnd()'s label when label is an object");
}, "console.timeEnd()'s label gets converted to string via label.toString() when label is an object");
test(() => {
assert_throws({name: "Error"}, () => {
console.time({
toString() {
throw new Error("conversion error");
}
});
}, "time() must re-throw any exceptions thrown by label.toString() conversion");
}, "console.time() throws exceptions generated by erroneous label.toString() conversion");
test(() => {
assert_throws({name: "Error"}, () => {
console.timeEnd({
toString() {
throw new Error("conversion error");
}
});
}, "timeEnd() must re-throw any exceptions thrown by label.toString() conversion");
}, "console.timeEnd() throws exceptions generated by erroneous label.toString() conversion");
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...