Skip to content

Commit

Permalink
Adding sources of Opera 55.0.2994.69
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Bendig committed Oct 10, 2018
1 parent 545b49b commit ec2ba61
Show file tree
Hide file tree
Showing 2,183 changed files with 139,289 additions and 37,050 deletions.
16 changes: 16 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import("//chrome/common/features.gni")
import("//tools/grit/grit_rule.gni")
import("//mojo/public/tools/bindings/mojom.gni")

grit("webui_test_resources") {
source = "webui_test_resources.grd"
Expand All @@ -12,5 +13,20 @@ grit("webui_test_resources") {
"test/data/grit/webui_test_resources.h",
"webui_test_resources.pak",
]

deps = [
":web_ui_test_bindings_js",
]

grit_flags = [
"-E",
"root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
]
output_dir = "$root_gen_dir/chrome"
}

mojom("web_ui_test_bindings") {
sources = [
"webui/web_ui_test.mojom",
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<!-- Should be counted as a normal same-origin ad iframe. -->
<iframe id="src_frame_same_origin" name="google_ads_iframe"
src="pixel.png">
</iframe>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<!-- Should be counted as same-origin even though it's about:contents. -->
<iframe id="srcdoc_frame_content" name="google_ads_iframe"
srcdoc="<hmtl> <img src=pixel.png> </html>">
</iframe>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<!-- Shouldn't be counted at all, page has no bytes. -->
<iframe id="srcdoc_frame_no_content" name="google_ads_iframe"
srcdoc="<hmtl></html>">
</iframe>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<body>
<h1>HELLO WORLD!</h1>
<script>
fetch("/cachetime").then((response) => {
console.log("hello");
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<body style="height:10000px;">
<h1>All about capybaras wearing watches!</h1>
<p>The capybara is a South American mammal that loves wearing watches.</p>
<img src="../capybara.jpg" width="400px"/>
</body>
</html>
7 changes: 7 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/android/form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<body>
<form id="form" method="post">
<input id="post_button" type="submit">
</form>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<p>This page opens new windows/tabs based on what is clicked.</p>
<a id="link" href="popup_on_click.html" target="_blank">Click for new tab</a>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!-- A page that is used to test that a dynamic form fill is only triggered the first time the form changes. -->
<body>
<form name="addr1.1" id="form1" action="https://example.com/" method="post">
Name: <input type="text" name="firstname" id="firstname"><br>
Address: <input type="text" name="address1" id="address1"><br>
City: <input type="text" name="city" id="city"><br>
State: <select name="state">
<option value="CA">CA</option>
<option value="MA">MA</option>
<option value="NY">NY</option>
<option value="MD">MD</option>
<option value="OR">OR</option>
<option value="OH">OH</option>
<option value="IL">IL</option>
<option value="DC">DC</option>
</select> <br>
Zip: <input name="zip" id="zip"> <br>
Country: <select name="country" id="country" onchange="CountryChanged()">
<option value="CA">Canada</option>
<option value="US">United States</option>
</select> <br>
Company: <input name="company" id="company"> <br>
Email: <input name="email" id="email"> <br>
Phone: <input name="phone" id="phone"> <br>
<input type="reset" value="Reset">
<input type="submit" value="Submit" id="profile_submit">
</form>
</body>

<script src="dynamic_form_utils.js"></script>
<script>

var notify_on_first_name_input_appear = false;

function CountryChanged() {
RemoveForm('form1');
var new_form = AddNewFormAndFields('form1', 'addr1.1');

// Trigger a second form change on refill.
new_form.elements[0].addEventListener('change', function(){
RemoveForm("form1")
var new_form2 = AddNewFormAndFields("form2", "addr1.2");
document.getElementsByTagName('body')[0].appendChild(new_form2);

if (notify_on_first_name_input_appear) {
// Give time to see if it fills.
setTimeout(function() {
window.domAutomationController.send(document.getElementById("firstname_form2").value != '');
}, 1000);
}
});

document.getElementsByTagName('body')[0].appendChild(new_form);
}

function hasRefilled() {
var first_name_input = document.getElementById('firstname_form2');
if (first_name_input) {
// Give time to see if it fills.
setTimeout(function() {
window.domAutomationController.send(first_name_input.value != '');
}, 1000);
} else {
notify_on_first_name_input_appear = true;
}
}

</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!-- A page that is used to test that a dynamic form fill feature works properly. -->
<body>
<form name="addr1.1" id="form1" action="https://example.com/" method="post">
Name: <input type="text" name="firstname" id="firstname"><br>
Address: <input type="text" name="address1" id="address1"><br>
City: <input type="text" name="city" id="city"><br>
State: <select name="state" id="state">
<option value="CA">CA</option>
<option value="MA">MA</option>
<option value="NY">NY</option>
<option value="MD">MD</option>
<option value="OR">OR</option>
<option value="OH">OH</option>
<option value="IL">IL</option>
<option value="DC">DC</option>
</select> <br>
Zip: <input name="zip" id="zip"> <br>
Country: <select name="country" id="country" onchange="CountryChanged()">
<option value="CA">Canada</option>
<option value="US">United States</option>
</select> <br>
Company: <input name="company" id="company"> <br>
Email: <input name="email" id="email"> <br>
Phone: <input name="phone" id="phone"> <br>
<input type="reset" value="Reset">
<input type="submit" value="Submit" id="profile_submit">
</form>
</body>

<script src="dynamic_form_utils.js"></script>
<script>

var notify_on_first_name_input_change = false;
var first_name_input_changed = false;

function CountryChanged() {
RemoveForm('form1');
var new_form = AddNewFormAndFields('form1', 'addr1.1');

var first_name_input = new_form.elements[0];
first_name_input.onchange = function() {
if (notify_on_first_name_input_change)
window.domAutomationController.send(first_name_input.value != '');
else
first_name_input_changed = true;
}

document.getElementsByTagName('body')[0].appendChild(new_form);
}

function hasRefilled() {
var first_name_input = document.getElementById('firstname_form1');
if (first_name_input && first_name_input_changed) {
window.domAutomationController.send(first_name_input.value != '');
} else {
notify_on_first_name_input_change = true;
}
}

</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!-- A page that is used to test that a dynamic form fill doesn't trigger if the form is modified more that a second after the user triggered the first fill. -->
<body>
<form name="addr1.1" id="form1" action="https://example.com/" method="post">
Name: <input type="text" name="firstname" id="firstname"><br>
Address: <input type="text" name="address1" id="address1"><br>
City: <input type="text" name="city" id="city"><br>
State: <select name="state" id="state">
<option value="CA">CA</option>
<option value="MA">MA</option>
<option value="NY">NY</option>
<option value="MD">MD</option>
<option value="OR">OR</option>
<option value="OH">OH</option>
<option value="IL">IL</option>
<option value="DC">DC</option>
</select> <br>
Zip: <input name="zip" id="zip"> <br>
Country: <select name="country" id="country" onchange="CountryChanged()">
<option value="CA">Canada</option>
<option value="US">United States</option>
</select> <br>
Company: <input name="company" id="company"> <br>
Email: <input name="email" id="email"> <br>
Phone: <input name="phone" id="phone"> <br>
<input type="reset" value="Reset">
<input type="submit" value="Submit" id="profile_submit">
</form>
</body>

<script src="dynamic_form_utils.js"></script>
<script>
var notify_on_first_name_input_appear = false;

function sleep (time) {
return new Promise((resolve) => setTimeout(resolve, time));
}

function CountryChanged() {
sleep(2000).then(() => {
RemoveForm('form1');
var new_form = AddNewFormAndFields('form1', 'addr1.1');
document.getElementsByTagName('body')[0].appendChild(new_form);

if (notify_on_first_name_input_appear) {
// Give time to see if it fills.
setTimeout(function() {
window.domAutomationController.send(document.getElementById("firstname_form1").value != '');
}, 1000);
}
});
}

function hasRefilled() {
var first_name_input = document.getElementById('firstname_form1');
if (first_name_input && first_name_input_changed) {
// Give time to see if it fills.
setTimeout(function() {
window.domAutomationController.send(first_name_input.value != '');
}, 1000);
} else {
notify_on_first_name_input_appear = true;
}
}

</script>
Loading

0 comments on commit ec2ba61

Please sign in to comment.