Skip to content

Instantly share code, notes, and snippets.

newClass = type('TouchMixin', (Marionette, MarionetteTouchMixin), {})
self.marionette.__class__ = newClass
self.marionette.setup_touch()
self.marionette.long_press(HTMLELEMENT, 5000)
from gaiatest import GaiaTestCase
import time
class TestRemoveApp(GaiaTestCase):
_icons_locator = ('css selector', 'li.icon')
def setUp(self):
GaiaTestCase.setUp(self)
# unlock the lockscreen if it's locked
self.assertTrue(self.lockscreen.unlock())
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
from gaiatest.mocks.mock_contact import MockContact
import unittest
import time
class TestContacts(GaiaTestCase):
<svg id="lockscreen-curve" xmlns="http://www.w3.org/2000/svg" version="1.1">
<image id="lockscreen-area-handle" x="150" y="100" width="20" height="9"
xlink:href="style/lockscreen/images/handle.png">
<animate class="lockscreen-start-animation" attributeType="XML" attributeName="y" begin="indefinite" dur="0.2s" to="100" />
<animate class="lockscreen-start-animation" attributeType="XML" attributeName="opacity" begin="indefinite" dur="0.5s" to="1" />
<animate class="lockscreen-end-animation" attributeType="XML" attributeName="y" begin="indefinite" dur="0.2s" to="0" />
<animate class="lockscreen-end-animation" attributeType="XML" attributeName="opacity" begin="indefinite" dur="0.5s" to="0" />
<animate class="lockscreen-prompt-animation" attributeType="XML" attributeName="y" dur="2s" calcMode="spline"
begin="indefinite" keySplines="0 .50 .50 1; .50 0 1 .50; 0 .50 .50 1; .50 0 1 .50"
values="100; 0; 120; 80; 100" />
<animate class="lockscreen-prompt-animation" attributeType="XML" attributeName="d" dur="2s" calcMode="spline"
begin="indefinite" keySplines="0 .50 .50 1; .50 0 1 .50;0 .50 .50 1; .50 0 1 .50;"
values="M0,80 C100,150 220,150 320,80;
M0,80 C100,40 220,40 320,80; M0,80 C100,150 220,150 320,80;
M0,80 C100,100 220,100 320,80; M0,80 C100,150 220,150 320,80" />
<linearGradient id="swiper-curve-gradient">
<stop style="stop-color:#FFFFFF;stop-opacity:1;" offset="0.00" />
<stop style="stop-color:#FFFFFF;stop-opacity:1;" offset="0.07" />
<stop style="stop-color:#ff0000;stop-opacity:1;" offset="0.07" />
<stop style="stop-color:#ff0000;stop-opacity:1;" offset="0.35" />
<stop style="stop-color:#FFFFFF;stop-opacity:1;" offset="0.35" />
<stop style="stop-color:#FFFFFF;stop-opacity:1;" offset="0.65" />
<stop style="stop-color:#00ff00;stop-opacity:1;" offset="0.65" />
<stop style="stop-color:#00ff00;stop-opacity:1;" offset="0.93" />
<stop style="stop-color:#FFFFFF;stop-opacity:1;" offset="0.93" />
<linearGradient id="gradient-red" y2="0" x2="0" y1="150" x1="0" gradientUnits="userSpaceOnUse" >
<stop offset="0.2" style="stop-color:#ff0000;stop-opacity:0" />
<stop offset="1" style="stop-color:#ff0000;stop-opacity:0.5" />
</linearGradient>
<clipPath clipPathUnits="userSpaceOnUse" id="clip-hangup">
<rect style="fill:#000000;fill-opacity:1;stroke:none" width="89" height="130" x="23" y="0" />
</clipPath>
<path id="swiper-hangup-mask" style="fill: url(#gradient-red);" id="swiper-curvepath-red" stroke="none"
clip-path="url(#clip-hangup)"
{
"name": "weather-test",
"version": "0.1.0",
"devDependencies": {
"mocha": "*",
"chai": "*",
"jsdom": "*"
},
"scripts": {
"test": "node_modules/.bin/mocha -u tdd test/weather_test.js"
var jsdom = require('jsdom').jsdom;
var assert = require('chai').assert;
var html = require('fs').readFileSync('index.html').toString();
var window, document, Weather;
suite('Weather', function() {
setup(function() {
document = jsdom(html);
window = document.createWindow();
Weather = require(__dirname + '/../js/weather.js').Weather;
language: node_js
node_js:
- "0.8"