Skip to content

Commit

Permalink
Adding sources of Opera 51.0.2830.61
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Bendig committed Mar 13, 2018
1 parent aea5ef7 commit e4ac8c3
Show file tree
Hide file tree
Showing 11,325 changed files with 667,431 additions and 210,672 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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.
17 changes: 17 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/android/hello.mhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
From: <Saved by UnMHT>
Subject: Hello
Date: Mon, Nov 21 2011 10:59:06 GMT-0800
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_NextPart_000_0000_0324C3DC.A3C79392";
type="text/html"

------=_NextPart_000_0000_0324C3DC.A3C79392
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.example.com

<html>
Hello, World!
</html>
------=_NextPart_000_0000_0324C3DC.A3C79392--
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
function spawnWindows() {
window.open('navigate/one.html');
window.open('navigate/two.html');
window.open('navigate/three.html');
}
</script>
</head>
<body onload="spawnWindows()">
Spawning three popup windows...
Spawning two popup windows...
</body>
</html>
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,8 @@
<html>
<head>
<link rel="canonical" href="http://examplehttp.com/" />
</head>
<body>
<div>Test page with HTTP canonical URL.</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>
<link rel="canonical" href="https://examplehttps.com/" />
</head>
<body>
<div>Test page with HTTPS canonical URL.</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<head></head>
<body>
<div>Test page with no canonical URL.</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!doctype html>
<!--
Tests that either screen taps are registered in VR when viewer is Cardboard
or that controller clicks are registered as screen taps in VR when viewer is
Daydream View.
Tests that screen taps when using Cardboard are translated into controller
input, and that Daydream controller input is registered when using Daydream
View.
-->
<html>
<head>
Expand All @@ -19,14 +19,16 @@
() => {finishJavaScriptStep();}, false);
var pressed = false;
var index = -1;
var canStartTest = false;
window.addEventListener("gamepadconnected", function(e) {
t.step( () => {
assert_equals(index, -1, "Should only receive gamepadconnected once");
index = e.gamepad.index;
});
index = e.gamepad.index;
});
onAnimationFrameCallback = function() {
if (index == -1) return;
if (!canStartTest) return;
var gp = navigator.getGamepads()[index];
if (!pressed && gp.buttons[0].pressed == true) {
pressed = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script>
<script src="../resources/webvr_e2e.js"></script>
<script src="../resources/webvr_boilerplate.js"></script>
<script>
var t = async_test("NFC scan fires the vrdisplayactivate event");
function addListener() {
window.addEventListener("vrdisplayactivate", () => {t.done();}, false);
window.addEventListener("vrdisplayactivate", () => {
vrDisplay.requestPresent([{source: webglCanvas}]).then( () => {
// Do nothing
}, (err) => {
t.step( () => {
assert_unreached(
"Was unable to present with vrdisplayactivate: " + err);
});
}).then( () => {t.done()});
}, false);
}
// NFC scan triggered after page loaded and listener added
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@
<script>
var t = async_test("Test pose data in unfocused tab");
var fd = null;
let counter = 0;

function stepCheckFrameDataWhileFocusedTab() {
function onAnimationFrame() {
// TODO(bsheedy): This is a workaround for crbug.com/787196. Either
// remove the workaround once fixed or remove this todo.
// Let several animation frames get triggered so we're sure to have a
// pose
if (counter <= 2) {
counter++;
vrDisplay.requestAnimationFrame(onAnimationFrame);
return;
}
fd = new VRFrameData();
t.step( () => {
assert_true(vrDisplay.getFrameData(fd),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/* Adds an event with the given name to the AutomationEventQueue. */
function raiseEvent(str) {
if (window.domAutomationController) {
window.domAutomationController.sendWithId(4444, str);
window.domAutomationController.send(str);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<title>Autofill phone fields test form</title>
</head>
<body>
<form id="testform" method="post">
<label for="NAME_FIRST">First name:</label>
<input type="text" id="NAME_FIRST"><br/>
<label for="NAME_LAST">Last name:</label>
<input type="text" id="NAME_LAST"><br/>
<form id="testform1" method="post">
<label for="NAME_FIRST1">First name:</label>
<input type="text" id="NAME_FIRST1"><br/>
<label for="NAME_LAST1">Last name:</label>
<input type="text" id="NAME_LAST1"><br/>
<label for="ADDRESS_HOME_LINE1">Address:</label>
<input type="text" id="ADDRESS_HOME_LINE1"><br/>
<label for="ADDRESS_HOME_CITY">City:</label>
Expand All @@ -23,11 +23,26 @@
<label for="PHONE_HOME_WHOLE_NUMBER">Phone:</label>
<input type="text" id="PHONE_HOME_WHOLE_NUMBER"><br/>

</form>
<form id="testform2" method="post">
<label for="NAME_FIRST2">First name:</label>
<input type="text" id="NAME_FIRST2"><br/>
<label for="NAME_LAST2">Last name:</label>
<input type="text" id="NAME_LAST2"><br/>

<!-- Set of phone fields with area code and phone number. -->
<label for="PHONE_HOME_CITY_CODE-1">Area Code:</label>
<input type="text" id="PHONE_HOME_CITY_CODE-1">
<label for="PHONE_HOME_NUMBER">Phone:</label>
<input type="text" id="PHONE_HOME_NUMBER"><br/>
</form>

<form id="testform3" method="post">
<label for="NAME_FIRST3">First name:</label>
<input type="text" id="NAME_FIRST3"><br/>
<label for="NAME_LAST3">Last name:</label>
<input type="text" id="NAME_LAST3"><br/>


<!-- Set of phone fields with area code, ###, ####, and ext. -->
<label for="PHONE_HOME_CITY_CODE-2">Phone:</label>
Expand All @@ -38,6 +53,13 @@
<input type="text" maxlength="4" id="PHONE_HOME_NUMBER_4-1">
<label for="PHONE_HOME_EXT-1">ext.:</label>
<input type="text" maxlength="5" id="PHONE_HOME_EXT-1"><br/>
</form>

<form id="testform4" method="post">
<label for="NAME_FIRST4">First name:</label>
<input type="text" id="NAME_FIRST4"><br/>
<label for="NAME_LAST4">Last name:</label>
<input type="text" id="NAME_LAST4"><br/>

<!-- Set of phone fields with country code, area code, ###, ####, and ext. -->
<label for="PHONE_HOME_COUNTRY_CODE-1">Phone:</label>
Expand Down
6 changes: 6 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/banners/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ function addManifestLinkTag() {
var manifestUrl =
(manifestIndex >= 0) ? url.slice(manifestIndex + 10) : 'manifest.json';
var linkTag = document.createElement("link");
linkTag.id = "manifest";
linkTag.rel = "manifest";
linkTag.href = manifestUrl;
document.head.append(linkTag);
}

function changeManifestUrl(newManifestUrl) {
var linkTag = document.getElementById("manifest");
linkTag.href = newManifestUrl;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Manifest test app",
"icons": [
{
"src": "launcher-icon-1x.png",
"sizes": "48x48",
"type": "image/png",
"purpose": "any badge"
}
],
"start_url": "manifest_test_page.html",
"display": "standalone",
"orientation": "landscape"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQ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i4hwdiKZwKcPMPxul1zl2+UZIaZcz1JOIlpvzdH/j3rD9FMn7
MEflLazQXol3TeGvw9z2b7TW0kIZRdVa2Sbeez5KyaFTHsXN/hMxIxG1hpaPZ2qg
JC+KW/p1XYg9Dd2M0PQVB7ibzLDJuDv1XcPjvrTHOb6z9NOUkdIbfVhn8QKBgQC9
nIYRA9ou+9YeyCjdv3JGUErVjL4r4t0S/6OiZZfQi7siMekyc1TITgHWgWrmJNBh
UNaWg4r0om07FkmogFfOHk1qVXaHtfWYZDlUy1bHVnZ0Dfce1O67/zni6mHHqH7M
Lmfs41Rpqce6BBBiDe3VFDBS70b6h2QN3u9HIRwtoQKBgAS4ny7Qs860FK4lp+DX
/PqqNkd7jLWR9sJTsm68YZzG+11PcHXN7z8qJOzLt2TncqGb0JLSLPRqno3RCw0t
65cnWIYd9jKls9wpqgGPL4fxhO+c5aSG23yXKDyQA4RMEWLtHhprVcMoh6JRkzDW
v6QkZrlC+emRlRhUfDDJjmaO
-----END PRIVATE KEY-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// Copyright 2017 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.

/**
* The packed extension resides in
* ../webstore/downloads/fmmbbdiapbcicajbpkpkdbcgidgppada.crx .
* Update it too whenever this file is updated.
* See https://developer.chrome.com/extensions/packaging#packaging for how to
* package.
*/

chrome.test.runTests([
function virtualKeyboardAllRestrict() {
chrome.virtualKeyboard.restrictFeatures(
{
autoCompleteEnabled: false,
autoCorrectEnabled: false,
spellCheckEnabled: false,
voiceInputEnabled: false,
handwritingEnabled: false
},
chrome.test.callbackPass(function(update) {
chrome.test.assertEq(
{
autoCompleteEnabled: false,
autoCorrectEnabled: false,
spellCheckEnabled: false,
voiceInputEnabled: false,
handwritingEnabled: false
},
update);

chrome.virtualKeyboardPrivate.getKeyboardConfig(
chrome.test.callbackPass(function(config) {
chrome.test.assertTrue(
config.features.includes('autocomplete-disabled'));
chrome.test.assertTrue(
config.features.includes('autocorrect-disabled'));
chrome.test.assertTrue(
config.features.includes('spellcheck-disabled'));
chrome.test.assertTrue(
config.features.includes('voiceinput-disabled'));
chrome.test.assertTrue(
config.features.includes('handwriting-disabled'));
}));
}));
},
function virtualKeyboardAllEnable() {
chrome.virtualKeyboard.restrictFeatures(
{
autoCompleteEnabled: true,
autoCorrectEnabled: true,
spellCheckEnabled: true,
voiceInputEnabled: true,
handwritingEnabled: true
},
chrome.test.callbackPass(function(update) {
chrome.test.assertEq(
{
autoCompleteEnabled: true,
autoCorrectEnabled: true,
spellCheckEnabled: true,
voiceInputEnabled: true,
handwritingEnabled: true
},
update);
chrome.virtualKeyboardPrivate.getKeyboardConfig(
chrome.test.callbackPass(function(config) {
chrome.test.assertTrue(
config.features.includes('autocomplete-enabled'));
chrome.test.assertTrue(
config.features.includes('autocorrect-enabled'));
chrome.test.assertTrue(
config.features.includes('spellcheck-enabled'));
chrome.test.assertTrue(
config.features.includes('voiceinput-enabled'));
chrome.test.assertTrue(
config.features.includes('handwriting-enabled'));
}));
}));
},
function virtualKeyboardPartialRestrict() {
chrome.virtualKeyboard.restrictFeatures(
{
autoCompleteEnabled: false,
autoCorrectEnabled: true,
spellCheckEnabled: false,
voiceInputEnabled: true,
// handwritingEnabled is omitted; the current config should be used.
},
chrome.test.callbackPass(function(update) {
chrome.test.assertEq(
{
autoCompleteEnabled: false,
spellCheckEnabled: false,
},
update);
chrome.virtualKeyboardPrivate.getKeyboardConfig(
chrome.test.callbackPass(function(config) {
chrome.test.assertTrue(
config.features.includes('autocomplete-disabled'));
chrome.test.assertTrue(
config.features.includes('autocorrect-enabled'));
chrome.test.assertTrue(
config.features.includes('spellcheck-disabled'));
chrome.test.assertTrue(
config.features.includes('voiceinput-enabled'));
chrome.test.assertTrue(
config.features.includes('handwriting-enabled'));
}));
}));
},
function virtualKeyboardOnConfigChanged() {
chrome.test.listenOnce(
chrome.virtualKeyboardPrivate.onKeyboardConfigChanged,
function(config) {
chrome.test.assertTrue(!!config);
// The callback parameter should be the same as the return value of
// |getKeyboardConfig|
chrome.virtualKeyboardPrivate.getKeyboardConfig(
chrome.test.callbackPass(function(config2) {
chrome.test.assertEq(config, config2);
}));
});

chrome.virtualKeyboard.restrictFeatures(
{
autoCompleteEnabled: true,
autoCorrectEnabled: true,
spellCheckEnabled: false,
voiceInputEnabled: true,
handwritingEnabled: false
},
chrome.test.callbackPass());
},
]);
Loading

0 comments on commit e4ac8c3

Please sign in to comment.