Skip to content

Commit

Permalink
Adding sources of Opera 56.0.3051.44
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Bendig committed Oct 10, 2018
1 parent ec2ba61 commit 1ee5113
Show file tree
Hide file tree
Showing 1,329 changed files with 109,547 additions and 8,875 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ function onFinished(name, id, result)
var statusPanel = document.getElementById("statusPanel");
if (statusPanel) {
statusPanel.innerHTML = result;
}

if (result == "OK")
document.title = "OK";
else
}

if (result == "OK")
document.title = "OK";
else
document.title = "FAIL";
}

Expand Down
21 changes: 21 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/ad_tagging/ad_script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

function createAdFrame(url, name) {
let frame = document.createElement('iframe');
frame.name = name;
frame.src = url;
document.body.appendChild(frame);
}

async function createDocWrittenAdFrame(name, base_url) {
let doc_body = await fetch('frame_factory.html');
let doc_text = await doc_body.text();

let frame = document.createElement('iframe');
frame.name = name;
document.body.appendChild(frame);

frame.contentDocument.open();
frame.contentDocument.write(doc_text);
frame.contentDocument.close();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

function createFrame(url, name) {
let frame = document.createElement('iframe');
frame.name = name;
frame.src = url;
document.body.appendChild(frame);
}

async function createDocWrittenFrame(name, base_url) {
let doc_body = await fetch('frame_factory.html');
let doc_text = await doc_body.text();

let frame = document.createElement('iframe');
frame.name = name;
document.body.appendChild(frame);

frame.contentDocument.open();
frame.contentDocument.write(doc_text);
frame.contentDocument.close();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!DOCTYPE HTML>
<script src="create_frame.js"></script>
<script src="ad_script.js"></script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

function fromPx(pxValue) {
return parseInt(pxValue.replace('px', ''), 10);
}

function getSafeAreas() {
const e = document.getElementById('target');
const style = window.getComputedStyle(e, null);
return {
top: fromPx(style.getPropertyValue('margin-top')),
left: fromPx(style.getPropertyValue('margin-left')),
right: fromPx(style.getPropertyValue('margin-right')),
bottom: fromPx(style.getPropertyValue('margin-bottom'))
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta name="viewport" content="width=device-width initial-scale=1.0 viewport-fit=cover" />
<script src="shared.js"></script>
<style>
#target {
margin-top: env(safe-area-inset-top);
margin-left: env(safe-area-inset-left);
margin-bottom: env(safe-area-inset-bottom);
margin-right: env(safe-area-inset-right);
}
</style>
<div id=target></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<meta name="viewport" content="width=device-width initial-scale=1.0" />
<script src="shared.js"></script>
<style>
#target {
margin-top: env(safe-area-inset-top);
margin-left: env(safe-area-inset-left);
margin-bottom: env(safe-area-inset-bottom);
margin-right: env(safe-area-inset-right);
}

iframe {
width: 500px;
height: 500px;
}
</style>
<div id=target></div>
<button id=fullscreen>go fullscreen</button>
<button id=subframefull>fullscreen subframe</button>
<iframe src=subframe.html id=frame allow=fullscreen></iframe>
<script>
const frameWindow = document.getElementById('frame').contentWindow;

document.querySelector('#fullscreen').addEventListener('click', () => {
document.body.webkitRequestFullscreen();
}, { once: true });

document.querySelector('#subframefull').addEventListener('click', () => {
frameWindow.document.body.webkitRequestFullscreen();
}, { once: true });

const viewportTag = document.getElementsByTagName('meta')[0];
const defaultViewportContent = viewportTag.getAttribute('content');

function setViewportFit(value) {
viewportTag.setAttribute('content', defaultViewportContent + ', viewport-fit=' + value);
}
</script>
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 @@
61e535c75e11548909b662d8cea3ea450121ea74
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"name": "Amazon.com: The Path to Power (The Years of Lyndon Johnson, Volume 1) (9780679729457): Robert A. Caro: Books",
"startingURL": "https://www.amazon.com/Path-Power-Years-Lyndon-Johnson/dp/0679729453/ref=sr_1_1?_encoding=UTF8&ref_=nav_ya_signin&",
"actions": [
{
"selectorType": "xpath",
"selector": "//*[@id=\"add-to-cart-button\"]",
"context": [],
"type": "click"
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"hlb-ptc-btn-native\"]",
"context": [],
"type": "click"
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"enterAddressFullName\"]",
"context": [],
"type": "autofill",
"fields" : [
{
"selector": "//*[@id=\"enterAddressFullName\"]",
"context": [],
"expectedAutofillType": "NAME_FULL",
"expectedValue": "Milton C. Waddams"
},
{
"selector": "//*[@id=\"enterAddressAddressLine1\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_LINE1",
"expectedValue": "4120 Freidrich Lane"
},
{
"selector": "//*[@id=\"enterAddressAddressLine2\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_LINE2",
"expectedValue": "Apt 8"
},
{
"selector": "//*[@id=\"enterAddressCity\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_CITY",
"expectedValue": "Austin"
},
{
"selector": "//*[@id=\"enterAddressStateOrRegion\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_STATE",
"expectedValue": "Texas"
},
{
"selector": "//*[@id=\"enterAddressPostalCode\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_ZIP",
"expectedValue": "78744"
},
{
"selector": "//*[@id=\"enterAddressPhoneNumber\"]",
"context": [],
"expectedAutofillType": "PHONE_HOME_CITY_AND_NUMBER",
"expectedValue": "5125551234"
}
]
},
{
"selectorType": "xpath",
"selector": "//input[@type='submit' and @value='Deliver to this address']",
"context": [],
"type": "click"
},
{
"context": [],
"type": "waitFor",
"assertions": [
"return document.querySelector(`#spinner-anchor`).style.display === 'none';"
]
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"shippingOptionFormId\"]/div[1]/div[2]/div/span[contains(., '')]/span[contains(., '')]/input[@type='submit' and @value='Continue']",
"context": [],
"type": "click"
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"ccName\"]",
"context": [],
"type": "autofill",
"fields" : [
{
"selector": "//*[@id=\"addCreditCardNumber\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_NUMBER",
"expectedValue": "9621327911759602"
},
{
"selector": "//*[@id=\"ccName\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_NAME_FULL",
"expectedValue": "Milton Waddams"
},
{
"selector": "//*[@id=\"ccMonth\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_EXP_MONTH",
"expectedValue": "5"
},
{
"selector": "//*[@id=\"ccYear\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_EXP_4_DIGIT_YEAR",
"expectedValue": "2027"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e55aa2211a7911d890efd16fd44de605c70f0022
Loading

0 comments on commit 1ee5113

Please sign in to comment.