Bug 1245153 - Remove testing/marionette/atoms; r=automatedtester

MozReview-Commit-ID: 1aeRNnvqmcS

--HG--
rename : testing/marionette/atoms/atoms.js => testing/marionette/atom.js
extra : histedit_source : 3f864808e86d7cafbcb9edee3702f9cc16089b76
extra : rebase_source : 8d80f0505b8b0b3779eb04165c98c72f284ce573
extra : commitid : Ekqmuuhp0pC
extra : source : 3edb67388ad6bbdee9f735b2a99d1999a1af0a46
extra : amend_source : 142a6496da5d8c7edb72b27f27944add2ce0dc8d
extra : intermediate-source : 5fe42d498a2a4511b3d479c4d75b078817f05632
This commit is contained in:
Andreas Tolfsen 2016-02-03 19:00:46 +00:00
Родитель 1e6e0199c1
Коммит 85d23f2052
10 изменённых файлов: 6 добавлений и 48 удалений

Просмотреть файл

Просмотреть файл

@ -1,29 +0,0 @@
These atoms are generated from the selenium trunk. They are minified versions of what's in the trunk,
optimized to run on Firefox. To generate them, clone the repo:
svn checkout http://selenium.googlecode.com/svn/trunk/ selenium-read-only
then run the Google closure compiler and specify which atom you'd like to get.
For example, this will generate the "get_text" atom:
cd selenium-read-only
./go //javascript/webdriver/atoms:get_text:firefox
This generates the atom, which is a function. You'll need to assign that function to a variable of your choice
which you can then import, i.e.: you'll need to modify the atom with a variable assignment:
var myVar = <atom code>
You can now import this atom and call it with myVar(). Please note the name of the function as a comment above this line to help readability in the atoms file.
For more information on atoms, refer to http://code.google.com/p/selenium/wiki/AutomationAtoms#Atoms_Summary
Currently bundled atoms (please update as you add more):
- clearElement
- click
- getAttributeValue
- getElementText
- isElementDisplayed
- isElementEnabled
- isElementSelected
- sendKeysToElement/type

Просмотреть файл

@ -1,7 +0,0 @@
# 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/.
marionette.jar:
% content marionette %content/
content/atoms.js (atoms.js)

Просмотреть файл

@ -1,7 +0,0 @@
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
JAR_MANIFESTS += ['jar.mn']

Просмотреть файл

@ -24,7 +24,7 @@ XPCOMUtils.defineLazyServiceGetter(
this, "cookieManager", "@mozilla.org/cookiemanager;1", "nsICookieManager2");
Cu.import("chrome://marionette/content/actions.js");
Cu.import("chrome://marionette/content/atoms.js");
Cu.import("chrome://marionette/content/atom.js");
Cu.import("chrome://marionette/content/interactions.js");
Cu.import("chrome://marionette/content/elements.js");
Cu.import("chrome://marionette/content/event.js");

Просмотреть файл

@ -6,7 +6,7 @@
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.import("chrome://marionette/content/atoms.js");
Cu.import("chrome://marionette/content/atom.js");
Cu.import("chrome://marionette/content/error.js");
/**

Просмотреть файл

@ -7,7 +7,7 @@
const {utils: Cu} = Components;
Cu.import("chrome://marionette/content/accessibility.js");
Cu.import("chrome://marionette/content/atoms.js");
Cu.import("chrome://marionette/content/atom.js");
Cu.import("chrome://marionette/content/error.js");
Cu.import("chrome://marionette/content/elements.js");
Cu.import("chrome://marionette/content/event.js");

Просмотреть файл

@ -24,6 +24,7 @@ marionette.jar:
content/proxy.js (proxy.js)
content/capture.js (capture.js)
content/cookies.js (cookies.js)
content/atom.js (atom.js)
#ifdef ENABLE_TESTS
content/test.xul (client/marionette/chrome/test.xul)
content/test2.xul (client/marionette/chrome/test2.xul)

Просмотреть файл

@ -14,7 +14,7 @@ loader.loadSubScript("chrome://marionette/content/simpletest.js");
loader.loadSubScript("chrome://marionette/content/common.js");
Cu.import("chrome://marionette/content/actions.js");
Cu.import("chrome://marionette/content/atoms.js");
Cu.import("chrome://marionette/content/atom.js");
Cu.import("chrome://marionette/content/capture.js");
Cu.import("chrome://marionette/content/cookies.js");
Cu.import("chrome://marionette/content/elements.js");

Просмотреть файл

@ -2,7 +2,7 @@
# 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/.
DIRS += ["components", "atoms"]
DIRS += ["components"]
JAR_MANIFESTS += ["jar.mn"]
MARIONETTE_UNIT_MANIFESTS += ['client/marionette/tests/unit/unit-tests.ini']