Skip to content

Commit

Permalink
Import wpt@956bd8fc1960bc574dcd1aebf3a33131d05f80b4
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium 8c0f6ea.
With Chromium commits locally applied on WPT:
f79c6fe "Reimplementing getDatabaseNames() as databases() for indexeddb."


Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/26607

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
[email protected]:
  external/wpt/css/css-flexbox

NOAUTOREVERT=true
TBR=markdittmer

No-Export: true
Change-Id: I6dc6392e83ff5d7092def49b12ac8e19eddbf28f
Reviewed-on: https://chromium-review.googlesource.com/c/1296310
Commit-Queue: Blink WPT Bot <[email protected]>
Reviewed-by: Blink WPT Bot <[email protected]>
Cr-Commit-Position: refs/heads/master@{#601924}
  • Loading branch information
chromium-wpt-export-bot authored and Commit Bot committed Oct 23, 2018
1 parent 6b18d3d commit 99379b7
Show file tree
Hide file tree
Showing 10 changed files with 2,609 additions and 12 deletions.
106 changes: 106 additions & 0 deletions third_party/WebKit/LayoutTests/TestExpectations

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST_5.json
Original file line number Diff line number Diff line change
Expand Up @@ -261860,6 +261860,12 @@
{}
]
],
"selection/addRange.tentative.html": [
[
"/selection/addRange.tentative.html",
{}
]
],
"selection/collapse-00.html": [
[
"/selection/collapse-00.html",
Expand Down Expand Up @@ -261984,6 +261990,12 @@
{}
]
],
"selection/stringifier.tentative.html": [
[
"/selection/stringifier.tentative.html",
{}
]
],
"selection/type.html": [
[
"/selection/type.html",
Expand Down Expand Up @@ -322166,7 +322178,7 @@
"reftest"
],
"css/css-flexbox/percentage-heights-003.html": [
"c8c4f3ac56f9c04411b609c81977fa398255353c",
"37109e2e78064e1588cb4252b8b2f8b154d43e6c",
"testharness"
],
"css/css-flexbox/percentage-heights-004-ref.html": [
Expand Down Expand Up @@ -383214,11 +383226,11 @@
"support"
],
"html/dom/interfaces.https.html": [
"ca067715de59973bdbb77adf65d59bfa39d82fbe",
"3848837cb2b7c37d23d3eefa3cb54e344f4ffaf1",
"testharness"
],
"html/dom/interfaces.https_exclude=(Document_Window_HTML._)-expected.txt": [
"9a0eccc5ebc1bd9647b34eee8f35c681044471fa",
"32ee1e59eb978b361d2011fb518c3ff7c3271c3b",
"support"
],
"html/dom/interfaces.https_include=(Document_Window)-expected.txt": [
Expand Down Expand Up @@ -421693,6 +421705,10 @@
"7c443f7dade9c236f146d09f274eb9113a5ff90d",
"support"
],
"selection/addRange.tentative.html": [
"28e3b675d393caef32db36c4f89b757d6ba2b04a",
"testharness"
],
"selection/collapse-00.html": [
"6adaca4002dc7b4e103e72c75e8f44b0ffeefd70",
"testharness"
Expand Down Expand Up @@ -421793,6 +421809,10 @@
"13108bb506d2ff38d9aef7d1a23eb087360c7ee8",
"testharness"
],
"selection/stringifier.tentative.html": [
"f4cae7eb5d4bd2cce73db1dc1b1da6ce5f753cef",
"testharness"
],
"selection/test-iframe.html": [
"42b982324b4e37633be7bccb037cff8f534b5712",
"support"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
}

.flexbox > div {
background: red;
background: teal;
flex-grow: 1;
}

span {
.flexbox span {
height: 100%;
background: green;
background: orange;
display: block;
}
</style>
Expand All @@ -38,19 +38,20 @@
<body onload="checkLayout('.flexbox')">
<div id=log></div>

<p>You should see no red</p>
<!-- The wrapper divs are here to give the flexbox something to fill -->

<!-- This wrapper div is solely here to setup the max height so it can be computed consistently since body at 100% won't be consistent across devices -->
<!-- definite unwrapped column flexbox -->
<div style="height: 100px;">

<div class="flexbox column">
<div class="flexbox column" style="height: 0">
<div>
<span data-expected-height="100"></span>
</div>
</div>
</div>

<!-- definite wrapped column flexbox -->
<div style="height: 100px;">
<div class="flexbox column-wrap">
<div class="flexbox column-wrap" style="height: 0">
<div>
<span data-expected-height="50"></span>
</div>
Expand All @@ -60,5 +61,26 @@
</div>
</div>

<!-- indefinite unwrapped column flexbox -->
<div style="height: 100px;">
<div class="flexbox column">
<div>
<span data-expected-height="0"></span>
</div>
</div>
</div>

<!-- indefinite wrapped column flexbox -->
<div style="height: 100px;">
<div class="flexbox column-wrap">
<div>
<span data-expected-height="0"></span>
</div>
<div>
<span data-expected-height="0"></span>
</div>
</div>
</div>

</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1>HTML IDL tests</h1>
CanvasGradient: [],
CanvasPattern: [],
TextMetrics: [],
ImageData: [],
ImageData: ['new ImageData(10, 10)'],
HTMLMapElement: ['document.createElement("map")'],
HTMLAreaElement: ['document.createElement("area")'],
HTMLTableElement: ['document.createElement("table")'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,11 @@ PASS ImageData interface: existence and properties of interface prototype object
PASS ImageData interface: attribute width
PASS ImageData interface: attribute height
PASS ImageData interface: attribute data
PASS ImageData must be primary interface of new ImageData(10, 10)
PASS Stringification of new ImageData(10, 10)
PASS ImageData interface: new ImageData(10, 10) must inherit property "width" with the proper type
PASS ImageData interface: new ImageData(10, 10) must inherit property "height" with the proper type
FAIL ImageData interface: new ImageData(10, 10) must inherit property "data" with the proper type assert_inherits: property "data" found on object expected in prototype chain
PASS Path2D interface: existence and properties of interface object
PASS Path2D interface object length
PASS Path2D interface object name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE HTML>
<meta charset=utf-8>
<title>Selection: Add a range to the selection</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.onload = function() {
test(function() {
var selection = window.getSelection();
var p = document.querySelector("p");

var range = document.createRange();
range.selectNode(p);
selection.addRange(range);

// In Safari the anchorNode is the Text node, elsewhere it's the Element.
assert_equals(selection.anchorNode, document.body);
assert_equals(selection.anchorOffset, 1);
assert_equals(selection.focusNode, document.body);
assert_equals(selection.focusOffset, 2);
assert_equals(selection.isCollapsed, range.collapsed);
assert_equals(selection.rangeCount, 1);
});
};
</script>
<body>
<p>Add a range to the selection</p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE HTML>
<meta charset=utf-8>
<title>Selection: stringifier</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.onload = () => {
test(() => {
const selection = getSelection();
const p = document.querySelector("p");

const range = document.createRange();
range.selectNode(p);
selection.addRange(range);

// In Chrome there are trailing \n characters. There is no spec for the
// stringifier, just a link to
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=10583
assert_equals(selection.toString(), "foo bar");
});
};
</script>
<!-- The structure of the document matters, in particular making this look like
in addRange.htm would mask the problem. -->
<body>
<p>foo bar</p>
</body>
</html>
Loading

0 comments on commit 99379b7

Please sign in to comment.