Commit Graph

18371 Commits

Author SHA1 Message Date
Steve Armand
5934392346 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 53658c33432927f72ddce0999f18c2b7df261f6d
2017-09-07 21:15:35 -04:00
Andrew Halberstadt
c3c1749786 Bug 1392390 - Create a reftest selftest harness, r=jmaher
This just adds two basic tests, one for a passing test and another for a
failing one. In mochitest, we use privileged APIs to also tests crashes,
assertions, asan and leaks. But these APIs aren't available to reftests
so I'm not sure how we can test these things.

I figure it's not worth holding the framework up on this though, I'll file
a follow-up to figure out something to do for that.

MozReview-Commit-ID: 59TSbsugT5T

--HG--
extra : rebase_source : 72ecd817017c8b7d55eab879db4f6ad5fecc54c0
2017-09-11 16:08:01 -04:00
Andrew Halberstadt
9efc4d301f Bug 1392390 - Refactor common code out of mochitest selftests and into a new moztest.selftest module, r=jmaher
This includes code for downloading a Firefox binary, downloading + setting up a tests.zip and
running output through mozharness' output parsers. This is all stuff that will also be required
for the reftest selftests.

I couldn't think of a better location to put this stuff, suggestions welcome.

MozReview-Commit-ID: 59TSbsugT5T

--HG--
extra : rebase_source : a328f6bc90e73fe23f9054933cd01a30065419f6
2017-09-11 16:06:06 -04:00
Axel Hecht
dfce75fd9a bug 1397721, build from l10n-central instead of releases/l10n/mozilla-release for cross-channel l10n, r=Callek
This change rides the train along with the change to build beta from
l10n-central.
Not changing 52 esr config, as that continues to build from the
repository it's currently building from.
ESR will be picked up when the next ESR is riding the trains from central.

MozReview-Commit-ID: F9Wo2mcZ3PA

--HG--
extra : rebase_source : dbf6c39cc5ab51bf4970caa4d62a80060b6b8c7c
2017-09-13 11:59:57 +02:00
Axel Hecht
32988afd27 bug 1397721, build from l10n-central instead of releases/l10n/mozilla-beta for cross-channel l10n, r=Callek
MozReview-Commit-ID: 1wY54ZaRhZi

--HG--
extra : rebase_source : 2e3d7f5c9f4e26cbd94768c0dc613eb895894cf3
2017-09-13 11:50:18 +02:00
David Burns
229ca71691 Bug 1392984 - Update manifest and meta data for find element wdspec tests r=ato
MozReview-Commit-ID: 32sVse5k9gT

--HG--
extra : rebase_source : 76308809757d90dded74e717e9ce90e31d231e62
2017-08-24 12:45:32 +01:00
David Burns
2cfbbeb448 Bug 1392984 - Add Find Elements From Element wdspec tests r=ato
This adds tests for the Find Elements From Element command in
https://w3c.github.io/webdriver/webdriver-spec.html#find-elements-from-element

MozReview-Commit-ID: 5cg8PugzMFT

--HG--
extra : rebase_source : 08877736c517d89d62171993a1ae026611b9fc23
2017-08-24 12:11:39 +01:00
David Burns
b4b480a24b Bug 1392984 - Add Find Element From Element wdspec tests r=ato
This adds wdspec tests for Find Element From Element as in
https://w3c.github.io/webdriver/webdriver-spec.html#find-element-from-element

MozReview-Commit-ID: 1a4vRv9wuwr

--HG--
extra : rebase_source : bf0d43b5d88caa208eed98ad0083fa4d53c3e118
2017-08-23 22:27:32 +01:00
David Burns
d2caa4578b Bug 1392984 - Add Find Elements wdspec tests r=ato
This adds tests for the Find Elements command in
https://w3c.github.io/webdriver/webdriver-spec.html#find-element

MozReview-Commit-ID: G0nC5iKAQSJ

--HG--
extra : rebase_source : 4850b20d69d9ad389607ffd6837f4009eb9870f5
2017-08-23 21:48:39 +01:00
David Burns
929c69a53c Bug 1392984 - Add Find Element wdspec tests r=ato
This adds tests for the Find Element command in
https://w3c.github.io/webdriver/webdriver-spec.html#find-element

MozReview-Commit-ID: Lgezt2pTXcU

--HG--
extra : rebase_source : 63fe86fda158a478581e1100db7d503d997679ed
2017-08-23 21:30:51 +01:00
Andreas Tolfsen
9342f618fd Bug 1398493 - Recommend Selenium 3.5 for geckodriver. r=automatedtester
Addresses code review comment.

DONTBUILD

MozReview-Commit-ID: 5CQw4SDos0e

--HG--
extra : rebase_source : 80c522a685874c752af1235674c11ef1f7365954
2017-09-12 19:06:27 +01:00
Andreas Tolfsen
6908673c47 Bug 1398493 - Improve testing/geckodriver Markdown docs. r=automatedtester
This change, though unstubstantial, will make the Markdown documents
under testing/geckodriver more readable in text editors.

DONTBUILD

MozReview-Commit-ID: 21yQUExNJhU

--HG--
extra : rebase_source : cb51d1a0ce93c561c79fabb941b56192ec711480
2017-09-09 16:50:57 +01:00
Boris Chiou
19ef8ca18f Bug 1392161 - Part 2: Update test expectation. r=xidorn
MozReview-Commit-ID: lURbKrREBp

--HG--
extra : rebase_source : 401a346acc551218d082ce47db4c89e984cb3f7f
2017-09-01 15:33:32 +08:00
Sebastian Hengst
be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Boris Zbarsky
101a69d71a Bug 864845 part 2. Make window.content chromeonly. r=mystor
MozReview-Commit-ID: Q7hTmngEgI
2017-09-12 15:33:10 -04:00
James Cheng
073b9ad68c Bug 1398102 - [Part1] canPlayType should return 'maybe' if the codec parameter is empty. r=gerald
MozReview-Commit-ID: BmzIUOuaTj9

--HG--
extra : rebase_source : d23d70aeb6097c0ba31f810240594ca4daa52f20
2017-09-11 17:17:55 +08:00
Sebastian Hengst
69de1aac47 Backed out changeset ec61b7a902c2 (bug 1397855) for XPCshell bustage, at least on Android. r=backout on a CLOSED TREE 2017-09-12 21:42:12 +02:00
Andreas Tolfsen
b803b6e1dc Bug 1399076 - Error when weakref of web element is destroyed. r=automatedtester
Take into account that a weak referenced element might have been destroyed
in the element staleness check.

An error is thrown when the reference object has been destroyed when
getting a weakrefs' pointer.  We catch this, but element.isStale does
not take into account that the el argument in this case can be null,
or in this revision of the patch, undefined.

MozReview-Commit-ID: 7sr4YGhAotS

--HG--
extra : rebase_source : 995eeef4ec1b19bf100cb95c4dd343e947b1cf52
2017-09-12 13:18:52 +01:00
Steve Armand
d4bfc7402c Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 1cdb7a848813a4a4872005095550b74c13ebecdf
2017-09-07 21:15:35 -04:00
Andreas Tolfsen
3d3207cf57 Bug 1396866 - Disable test_maximize_when_resized_to_max_size. r=automatedtester
This test causes both a failure and an error and we need to investigate
how to reuse the wptrunner session configuration when implicitly starting
a session.

MozReview-Commit-ID: 5k7nfevamZY

--HG--
extra : rebase_source : 6c00bf4505bd7da0b97dccd3eda61adc9efa874e
2017-09-09 12:22:53 +01:00
Andreas Tolfsen
7050aaf58b Bug 1396866 - Relax WindowRectResponse typing. r=jgraham
The WindowProxy screenX/screenY/outerWidth/outerHeight fields are
platform-independent longs, meaning the bitness of the system is not
taken into account.  This is defined in WebIDL as "a signed integer type
that has values in the range [−2147483648, 2147483647]".  This can be
represented with an i32 internally.

Additionally, the WebDriver specification says that we should accept
JSON Numbers as input.  This means the input value can be either a float
or an integer.  rustc_serialize handles this very badly and we first
need to extract the input as f64 because this is the most liberal type
(i.e. an integer can be coerced to a float without problem).

We then we cast the number to an i64 which trims off any decimals without
worrying that the number wraps.  We then run bounds checks of an i32
and error if the number will not fit within the set range.

This patch expects the output from Marionette to be conforming.

MozReview-Commit-ID: CVdUZWh2t8X

--HG--
extra : rebase_source : 6780985703d5d5291eae508f9eb2fdec16c261cc
2017-09-09 12:21:50 +01:00
Andreas Tolfsen
bbf5d23b36 Bug 1396866 - Restore window state on maximizing, minimizing, and fullscreening. r=automatedtester
When maximizing the window we must restore it from iconified state or
exit fullscreen first.  Likewise for minimizing the window, we must
exit fullscreen.  For fullscreening the window we need to also restore
the window.

MozReview-Commit-ID: AOQX2cV2C75

--HG--
extra : rebase_source : 53f310cc261a9a411bc46a04dd50a160a930b5af
2017-09-09 12:20:40 +01:00
Henrik Skupin
c7eb7901af Bug 1388251 - Updated geckodriver changelog for process handling changes. r=jgraham
MozReview-Commit-ID: 8l18q0SgjJH

--HG--
extra : rebase_source : ddf18a2c75151a5d99419b214c67bd56467a2f6f
2017-09-12 19:15:50 +02:00
Henrik Skupin
34568cd204 Bug 1388251 - Cancel connection attempts if process is not running. r=jgraham
If the browser process is not running it doesn't make sense to try to
connect to it for another 60s. Instead error out immediately.

MozReview-Commit-ID: 64DTZfEfzQj

--HG--
extra : rebase_source : 9951b1a64cbd8b387c2bc5e1152de0a975dbbe77
2017-08-31 15:43:20 +02:00
Henrik Skupin
71551dcd13 Bug 1388251 - Bump mozrunner crate to version 0.5.0. r=jgraham
MozReview-Commit-ID: IhMuuz7EWv3

--HG--
extra : rebase_source : 0fef4fa63e5b808b9b163f04f3f79c1cfe68dbda
2017-09-11 20:43:43 +02:00
Wes Kocher
b1233c7d04 Backed out changeset 371a03aa9b24 (bug 1397056) for build errors in SmallPointerArray.h a=backout CLOSED TREE
MozReview-Commit-ID: FNVPjKmVCWB

--HG--
extra : rebase_source : 41e380e59d9eead945ba515d85c1b9195329bc74
2017-09-12 12:39:09 -07:00
Matt Woodrow
5675f29866 Bug 1397056 - Add Contains and a return parameter to Remove for SmallPointerArray. r=froydnj
* * *
[mq]: fix

MozReview-Commit-ID: 5laM7PQLP7X

--HG--
extra : rebase_source : f1baa7c1581fcc864d2b548989e967f57e24b921
2017-09-12 14:11:47 -04:00
Kris Maglione
e99cced382 Bug 1371065: Part 1 - Remove external references to the add-on SDK. r=Mossop,glandium
MozReview-Commit-ID: D5KyHcg8Ujk

--HG--
extra : rebase_source : 1a74ccb2963f2946a49c8bf720af595151b48fd1
2017-09-12 11:54:47 -07:00
Kris Maglione
f829523282 Bug 1371065: Part 0 - Fix unit tests that use the SDK loader :/ r=Mossop
MozReview-Commit-ID: 4ewrbY0FS09

--HG--
extra : rebase_source : 390256a9eb0d303d8582c24d69fff189b0e0ab4d
2017-09-08 18:16:50 -07:00
Ben Kelly
90d4e89eb3 Bug 1399214 Make WPT try to fix stacks even if a symbol dir is not explicitly passed. r=jgraham 2017-09-12 12:02:09 -07:00
Geoff Brown
9362fcf468 Bug 1398933 - Follow-up, fix cannot compare timedelta bustage, on a CLOSED TREE 2017-09-12 09:35:13 -06:00
Geoff Brown
c5b91c3972 Bug 1398933 - Ensure test-verify bails out before timing out; r=jmaher 2017-09-12 08:51:21 -06:00
Geoff Brown
fcaf64fa27 Bug 1398953 - Set runUntilFailure in mochitest with --verify option; r=jmaher 2017-09-12 08:51:19 -06:00
Ho-Pang Hsu
7b2a81c98d Bug 1379200 - Preserve the precision of a timestamp when converting it to string. r=bkelly 2017-09-12 11:01:41 +08:00
Sebastian Hengst
d2616ba316 Backed out changeset cfa7187f70e2 (bug 1359017) 2017-09-12 14:16:26 +02:00
Andrea Marchesini
e7ffdfce34 Bug 1359017 - WPTs for onmessageerror, r=masayuki 2017-09-12 11:57:27 +02:00
Wes Kocher
05c4aba599 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Sebastian Hengst
dbddac850d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IgyDMUVYYBm
2017-09-11 23:58:31 +02:00
Wes Kocher
e376f14721 Merge inbound to central, a=merge
MozReview-Commit-ID: GDeX9aPb7Fn
2017-09-11 14:41:45 -07:00
Anthony Miyaguchi
122408f0ff Bug 1390095 - Send a duplicate of a users first shutdown ping with pingsender. r=Dexter 2017-09-05 17:49:45 -07:00
Andrew McCreight
2b68b38709 Bug 1377587, part 1 - Always act like __exposedProps__ is missing. r=krizsa
This patch gently removes support for __exposedProps__ by changing
ExposedPropertiesOnly::check() to always return false, while still
failing silently in deny for some kinds of access.

The tests that I changed all involve testing the behavior with
__exposedProps__. I adjusted them to expect it to fail, or to adjust
the error message they get when they fail. That seemed better than
deleting them entirely.

Note that test_bug1065185.html had a bug, so that it never executed
the first case. I fixed that, and then fixed up the test to work when
__exposedProps__ is not supported.

This also removes various bits of the test framework that use
__exposedProps__, but don't actually need to.

MozReview-Commit-ID: 8fvkAmITmXY

--HG--
extra : rebase_source : ef7e2c55adc12511f17f3865ebb46c343875f0b3
2017-08-22 14:24:11 -07:00
Andreas Tolfsen
f38299c32f Bug 1398450 - Fix prefs test regression. r=jgraham
The marionette.defaultPrefs.port preference was changed to
marionette.port, but because we currently do not run tests in CI we
missed updating the test.

MozReview-Commit-ID: LKstRYmJcMO

--HG--
extra : rebase_source : 1633b5b82c3c8725ff66423119d7c476fa942b01
2017-09-09 16:58:54 +01:00
Kris Maglione
8c91f29845 Bug 1398499: Part 3 - Add Marionette tests for global sharing. r=mccr8
This tests both that the settings have the desired effect and that switching
between sharing enabled and sharing disabled without a startup cache flush
does not cause any issues.

Tests for user pref changes are currently non-fatal, since they're known not
to work reliably.

MozReview-Commit-ID: 1ZFwyiNf3da

--HG--
extra : rebase_source : c38bd92d2137c90f8c4d202b7009612b45ff4be9
2017-09-09 17:33:01 -07:00
Wes Kocher
b5fe3d1dc7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: zTrDLmRmnn
2017-09-08 13:42:01 -07:00
Wes Kocher
2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Michael Layzell
fb72b41777 Bug 1199729 - Part 7: Add manual web-platform-tests for Drag Data Store status, r=baku 2017-09-08 11:05:09 -04:00
Michael Layzell
63ecbc4c55 Bug 1199729 - Part 4: Update EventUtils to simulate drag events more accurately, r=baku 2017-09-08 11:05:08 -04:00
Nick Thomas
f4a2340251 Bug 1380605 - modifications to build openh264 v1.7.1, r=catlee
Notable changes
* ensure we run dump-symbols and upload actions on all platforms
* On android:
 * add configuration and support for aarch64
 * set min_sdk levels to match Fennec builds
 * use a full copy of the r11c ndk (our truncated one was missing toolchains we needed) and set NDKROOT when calling build
 * ensure the tooltool provided sdk is on the PATH
* on linux copy tooltool.py into the mock environment, so we can get dump_syms from tt
* remove macosx32 config as we've deprecated that in Firefox builds
* update dump_syms to recent m-c, notably for aarch64 support on linux
 * on linux rev e365137fa61bfd729617ba1ebf9f1ed79facd1f2 (via try 0f72a5c28be1cdc2f3bdfaafdf3826254f6ba077)
 * on mac rev e365137fa61bfd729617ba1ebf9f1ed79facd1f2 (via compile on a bld-lin-r5)
 * on windows rev a4a448ba7f187069fce916ee234a06cbb0d06f80 (via try dc8b121e3c08e8022d62c0fa1951dd3dc4d6f7cc)
* switch to Visual Studio 2015 Update 3 on win32/win64 to match Firefox
 * many updates to environement variables
 * painful to get win64 right to run win32 dump_syms.exe, but that's why the x86 redist is on teh PATH
* unwind the changes to get_output_from_command() in v1.6 patch to avoid affecting other builds, and use query_env() which has this support already
* add a scp_upload_directory since we don't have rsync on windows, use that to talk to the ffxbld upload host (not a long term solution but OK for now)

Applies on top of https://reviewboard.mozilla.org/r/64022/diff/4#index_header

MozReview-Commit-ID: B3NiWFvr2oR
2017-08-30 12:37:56 +12:00
Ionut Goldan
c948f97eb8 Bug 1331129 - address unexpected file accesses r=jmaher
MozReview-Commit-ID: owjXhFvMV0

--HG--
extra : rebase_source : d505305b4c3395f9967c531b31b3bcbaba626663
2017-09-05 17:38:26 +03:00
Alexandre Poirot
4ebd2fb5c9 Bug 1397222 - Fix running talos in developer mode on try branches. r=jmaher
MozReview-Commit-ID: FNQdBchveYF

--HG--
extra : rebase_source : c55e5c002c0d9536fa452ea38468ddb97e4a6156
2017-09-06 13:58:01 +02:00