Bug 1385805 - Convert some more tests within layout/ to comply with new data: URI inheritance model. r=smaug

This commit is contained in:
Christoph Kerschbaumer 2017-08-01 10:59:22 +02:00
parent 913d05755a
commit ea9c7f7996
18 changed files with 99 additions and 80 deletions

View File

@ -4,7 +4,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body>
<iframe src="data:text/html,<body spellcheck=false></body>"></iframe>
<iframe srcdoc="<body spellcheck=false></body>"></iframe>
<script>
onload = function() {
var i = document.querySelector("iframe");

View File

@ -4,7 +4,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body>
<iframe src="data:text/html,<body contenteditable spellcheck=false></body>"></iframe>
<iframe srcdoc="<body contenteditable spellcheck=false></body>"></iframe>
<script>
onload = function() {
var i = document.querySelector("iframe");

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<iframe src="data:text/html,<body spellcheck=false>xx</body>"></iframe>
<iframe srcdoc="<body spellcheck=false>xx</body>"></iframe>
<script>
onload = function() {
var i = document.querySelector("iframe");

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body onload="start()">
<iframe src="data:text/html,<body contenteditable spellcheck=false>foo bar"></iframe>
<iframe srcdoc="<body contenteditable spellcheck=false>foo bar"></iframe>
<script>
function start() {
var iframe = document.querySelector("iframe");

View File

@ -4,7 +4,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="start()">
<iframe src="data:text/html,<body contenteditable spellcheck=false>foo bar"></iframe>
<iframe srcdoc="<body contenteditable spellcheck=false>foo bar"></iframe>
<script>
function start() {
var iframe = document.querySelector("iframe");

View File

@ -4,7 +4,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="start()">
<iframe src="data:text/html,<body contenteditable spellcheck=false>Here's some text.<br /><br /><div></div></body>"></iframe>
<iframe srcdoc="<body contenteditable spellcheck=false>Here's some text.<br /><br /><div></div></body>"></iframe>
<script>
function start() {
var iframe = document.querySelector("iframe");

View File

@ -4,7 +4,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="start()">
<iframe src="data:text/html,<body contenteditable spellcheck=false><br /><div></div></body>"></iframe>
<iframe srcdoc="<body contenteditable spellcheck=false><br /><div></div></body>"></iframe>
<script>
function start() {
var iframe = document.querySelector("iframe");

View File

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body>
<a href="#anchor">Click to scroll to anchor</a><div style="height:5000px"></div><a name="anchor">FAIL</a>
</body>
</html>

View File

@ -0,0 +1,3 @@
<!DOCTYPE HTML>
<html style='padding:25px'>
<div id='f1d' style='position:absolute; left:14px; top:15px; width:16px; height:17px; background:pink'></div>

View File

@ -0,0 +1 @@
<div id='d'>

View File

@ -85,6 +85,8 @@ support-files =
[test_bug761572.html]
[test_bug770106.html]
[test_bug842853.html]
support-files =
file_bug842853-frame.html
skip-if = toolkit == 'android' # Bug 1355821
[test_bug842853-2.html]
skip-if = toolkit == 'android' # Bug 1355821
@ -143,6 +145,9 @@ skip-if = true # Bug 688128
[test_frame_reconstruction_for_pseudo_elements.html]
[test_frame_reconstruction_scroll_restore.html]
[test_getBoxQuads_convertPointRectQuad.html]
support-files =
file_getBoxQuads_convertPointRectQuad_frame1.html
file_getBoxQuads_convertPointRectQuad_frame2.html
[test_getClientRects_emptytext.html]
[test_mozPaintCount.html]
skip-if = toolkit == 'android' # Requires plugin support
@ -327,7 +332,9 @@ support-files = resize_flush_iframe.html
[test_scroll_event_ordering.html]
[test_scroll_selection_into_view.html]
skip-if = toolkit == 'android' # Bug 1355844
support-files = scroll_selection_into_view_window.html
support-files =
scroll_selection_into_view_window.html
scroll_selection_into_view_window_frame.html
[test_scroll_snapping.html]
skip-if = toolkit == 'android' || os == 'win' # Bug 1355851, win Bug 1379810
[test_scroll_snapping_scrollbars.html]
@ -335,6 +342,8 @@ skip-if = toolkit == 'android' || (os == 'win' && !e10s) # Bug 1355851, bug 1381
[test_transformed_scrolling_repaints.html]
[test_transformed_scrolling_repaints_2.html]
[test_transformed_scrolling_repaints_3.html]
support-files = transformed_scrolling_repaints_3_window.html
support-files =
transformed_scrolling_repaints_3_window.html
transformed_scrolling_repaints_3_window_frame.html
# *** Please maintain alphabetical ordering when adding new tests ***

View File

@ -28,14 +28,7 @@
</div>
<div id="c4" style="overflow-y:scroll; width:200px; height:200px; position:absolute; top:200px; left:600px;">
<iframe id="target4" style="border:none; width:100%; height:1100px; display:block;"
src="data:text/html,
<body style='margin:0; overflow:hidden;'>
<div style='height:400px;'></div>
<div><span id='target4'
style='display:inline-block; vertical-align:top; height:300px;'></span>
</div>
<div style='height:400px;'></div>">
</iframe>
src="scroll_selection_into_view_window_frame.html"></iframe>
</div>
<div id="c5" style="overflow-y:scroll; width:200px; height:200px; position:absolute; top:400px; left:0;">
<div style="-moz-transform:translateY(400px); transform:translateY(400px)">

View File

@ -0,0 +1,6 @@
<body style='margin:0; overflow:hidden;'>
<div style='height:400px;'></div>
<div><span id='target4'
style='display:inline-block; vertical-align:top; height:300px;'></span>
</div>
<div style='height:400px;'></div>

View File

@ -40,7 +40,7 @@ function runTest() {
<script>
var e = document.createElement('iframe');
var url = 'data:text/html,<a href="%23anchor">Click to scroll to anchor</a><div style="height:5000px"></div><a name="anchor">FAIL</a>'
var url = 'file_bug842853-frame.html';
e.setAttribute('src',url);
e.setAttribute('onload','runTest()');
document.body.appendChild(e);

View File

@ -40,7 +40,7 @@ function runTest() {
<script>
var e = document.createElement('iframe');
var url = 'data:text/html,<a href="%23anchor">Click to scroll to anchor</a><div style="height:5000px"></div><a name="anchor">FAIL</a>'
var url = 'file_bug842853-frame.html';
e.setAttribute('src',url);
e.setAttribute('onload','runTest()');
document.body.appendChild(e);

View File

@ -234,7 +234,7 @@ em {
<div id="dUnrelated" style="width:50px; height:50px;"></div>
<iframe id="f1" style="width:50px; height:50px; border:0; background:lime;"
src="data:text/html,<!DOCTYPE HTML><html style='padding:25px'><div id='f1d' style='position:absolute; left:14px; top:15px; width:16px; height:17px; background:pink'></div>">
src="file_getBoxQuads_convertPointRectQuad_frame1.html">
</iframe>
<!--
It matters that the first part of this span is on the same line as the above <iframe>!
@ -686,7 +686,7 @@ function runTest() {
// Test that converting between nodes in different toplevel browsing contexts
// throws an exception.
try {
openedWindow = window.open("data:text/html,<div id='d'>","");
openedWindow = window.open("file_getBoxQuads_convertPointRectQuad_frame2.html","");
} catch (ex) {
// in some cases we can't open the window.
openedWindow = null;

View File

@ -7,65 +7,8 @@
<!-- Need a timeout here to allow paint unsuppression before we start the test -->
<body onload="setTimeout(startTest,0)" style="background:white;">
<iframe id="t" style="-moz-transform: scale(0.48979); -moz-transform-origin:top left; width:500px; height:600px;"
src="data:text/html,
<body style='background:yellow;'>
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p id='e'>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
</body>"></iframe>
src="transformed_scrolling_repaints_3_window_frame.html">
</iframe>
<pre id="test">
<script type="application/javascript">
var SimpleTest = window.opener.SimpleTest;

View File

@ -0,0 +1,58 @@
<body style='background:yellow;'>
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p id='e'>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
<p>My graduate adviser was the most patient, understanding, and helpful
person I've ever had the joy of dealing with. That doesn't change that
there are some real dicks out there, and some of them happen to be
scientists.
</body>