Skip to content

Instantly share code, notes, and snippets.

@yzen
yzen / test case
Last active March 27, 2020 13:51
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const srcURL = new URL(`http://example.net/document-builder.sjs`);
srcURL.searchParams.append(
"html",
`<html>
<head>
Painting --- after optimization:
SolidColor p=0x146440618 f=0x1439a0020() key=54 bounds(0,0,76800,37320) layerBounds(0,0,76800,37320) visible(0,0,76800,37320) building(0,0,76800,37320) componentAlpha(0,0,0,0) clip() asr() clipChain() uniform ref=0x1439a0020 agr=0x1439a0020 (opaque 0,0,76800,37320) (rgba 255,255,255,255)
CompositorHitTestInfo p=0x146433f30 f=0x1439a0198( class:) key=27 bounds(0,0,0,0) layerBounds(0,0,0,0) visible(0,0,76800,37320) building(0,0,76800,37320) componentAlpha(0,0,0,0) clip() asr() clipChain() ref=0x1439a0020 agr=0x1439a0020 hitTestInfo(0x1) hitTestArea(0,0,76800,37320)
CompositorHitTestInfo p=0x146441130 f=0x1439a00c0( class:) key=283 bounds(0,0,0,0) layerBounds(0,13680,0,0) visible(0,0,76800,37320) building(0,0,76800,37320) componentAlpha(0,0,0,0) clip() asr(<0x1439a0230>) clipChain(0x146e80d20 <0,0,76800,37320> [root asr]) ref=0x1439a0020 agr=0x1439a00c0 hitTestInfo(0x1) hitTestArea(0,-13680,76800,702206)
CompositorHitTestInfo p=0x146acc460 f=0x1439a00c0( class:) key=27 bounds(0,0
Painting --- after optimization:
SolidColor p=0x17d28fa18 f=0x149ece020() key=54 bounds(0,0,76800,56760) layerBounds(0,0,76800,56760) visible(0,0,76800,56760) building(0,0,76800,56760) componentAlpha(0,0,0,0) clip() asr() clipChain() uniform ref=0x149ece020 agr=0x149ece020 (opaque 0,0,76800,56760) (rgba 238,238,238,255)
CompositorHitTestInfo p=0x189dd4a40 f=0x149ece0c0( id:main-window) key=27 bounds(0,0,0,0) layerBounds(0,0,0,0) visible(0,0,76800,56760) building(0,0,76800,56760) componentAlpha(0,0,0,0) clip() asr() clipChain() ref=0x149ece020 agr=0x149ece020 hitTestInfo(0x1) hitTestArea(0,0,76800,56760)
CanvasBackgroundColor p=0x17c736020 f=0x149ece0c0( id:main-window) key=17 bounds(0,0,76800,56760) layerBounds(0,0,76800,56760) visible(0,0,76800,56760) building(0,0,76800,56760) componentAlpha(0,0,0,0) clip() asr() clipChain() uniform ref=0x149ece020 agr=0x149ece020 (rgba 0,0,0,0)
BackgroundColor p=0x17d28d3a8 f=0x1514cece8( id:tabbrowser-tabpanels class:plain) key=6 bounds(0,4440,76800,52320) layerBounds(0,44
{
mode: Symbol(TINY),
"object": [],
"title": "Object",
openLink: function() {...}
}
{
"actor": "server1.conn0.child1/accessible103",
"role": "document",
"name": "Restore Session",
"value": "",
"description": "",
"keyboardShortcut": "",
"childCount": 2,
"domNodeType": 9,
"indexInParent": 0,
var textPosition = new AccPos(domTextArea.accesibleElement, 'at');
// Read word by word
var word1 = textPosition.move('forward', 'word');
var word2 = word.move('forward', 'word');
var text = word2.textInBetween(word1);
var text = word1.findText('forward', 'paragraph');
function renameAddon(addon, name) {
if (!name) {
return Promise.reject('no name given');
}
if (!isAddon(addon)) {
return Promise.reject('not an addon');
}
var manifest = getManifest(addon);
diff --git a/app/js/controller/list_controller.js b/app/js/controller/list_controller.js
index 7f4197c..762b3c3 100644
--- a/app/js/controller/list_controller.js
+++ b/app/js/controller/list_controller.js
@@ -6,6 +6,8 @@ import AppListView from 'js/view/app_list_view';
import AddonListView from 'js/view/addon_list_view';
import DetailsView from 'js/view/details_view';
+import { ActivityHandler } from 'js/lib/helpers';
+
/*
--- a/apps/calendar/test/marionette/lib/calendar.js
+++ b/apps/calendar/test/marionette/lib/calendar.js
@@ -10,7 +10,9 @@ var AdvancedSettings = require('./views/advanced_settings'),
MonthDay = require('./views/month_day'),
ReadEvent = require('./views/read_event'),
Settings = require('./views/settings'),
- Week = require('./views/week');
+ Week = require('./views/week'),
+ AccessibilityHelper = require(
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y --no-install-recommends autoconf2.13 bison bzip2 ccache curl flex gawk gcc g++ g++-multilib gcc-4.6 g++-4.6 g++-4.6-multilib git lib32ncurses5-dev lib32z1-dev zlib1g:amd64 zlib1g-dev:amd64 zlib1g:i386 zlib1g-dev:i386 libgl1-mesa-dev libx11-dev make zip libxml2-utils
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 1
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 2
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 1
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 2
sudo update-alternatives --set gcc "/usr/bin/gcc-4.6"
sudo update-alternatives --set g++ "/usr/bin/g++-4.6"