Commit graph

536 commits

Author SHA1 Message Date
Chad Horohoe ee4b365bef Whoops, track not trace
Change-Id: I953b9346322ead2bee5fcfd14329ea0e106074d6
2016-10-24 17:03:28 -07:00
Chad Horohoe 090e1c4066 Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
Change-Id: I4a4c67ca421f38e1231f0ca00eadfd55a000e892
2016-10-24 16:38:18 -07:00
WMDE-Fisch 300c552334 Store settings for anonymous users
Introducing the Settings class handling settings for all users.
Use hidden user prefs for logged-in users and localStorage or
cookies for anonymous users.

Bug: T145494
Change-Id: I8676873c87d5656c55365706f1ccefa604caae4d
2016-10-24 16:46:42 +02:00
jenkins-bot 530295db60 Merge "Add a betaFeature switch" 2016-10-24 14:46:00 +00:00
addshore 02991a7bd0 Add a betaFeature switch
This config option allows the extension to be deployed
on a site that has the BF extension enabled while not using
it (ie, being a default feature)

Bug: T148644
Change-Id: I2539e4762d7c1c34ea24f98fdf24c2aecb3d27b0
2016-10-24 13:08:58 +00:00
jenkins-bot f266017c33 Merge "Don't nest mw-content-text element when reloading diff" 2016-10-24 09:22:43 +00:00
addshore 1e1c2f5943 Don't nest mw-content-text element when reloading diff
Bug: T144391
Change-Id: I5763c6c4288bfcfef03df0cd949715d21430c9af
2016-10-24 09:53:08 +01:00
addshore 066d905d33 Fix my author entry
Change-Id: I8bbdc9b4a39c235170ba3bfba71c78b453a3176a
2016-10-22 14:43:59 +00:00
jenkins-bot b47ffaf801 Merge "Fix selecting betafeature in browsertests" 2016-10-22 10:53:50 +00:00
Translation updater bot e67cc39ac7 Localisation updates from https://translatewiki.net.
Change-Id: I56ebdab1994b1a6355f6bf0b4e97d6ab1f86f9dc
2016-10-21 22:37:45 +02:00
Tobias Gritschacher 69e3a7dd6e Fix selecting betafeature in browsertests
this broke due to https://gerrit.wikimedia.org/r/#/c/315850/

Bug: T148841
Change-Id: I8997ec6d8bb210b87bb984a8f6aed2ba10dbd3f6
2016-10-21 17:29:01 +02:00
Translation updater bot 35a00afc94 Localisation updates from https://translatewiki.net.
Change-Id: I48842261c8eff2e8f41f5a9ab100306d70758f08
2016-10-20 23:48:30 +02:00
Translation updater bot 8717c28f3a Localisation updates from https://translatewiki.net.
Change-Id: Ifad55e49544180a892056948545aacd21dfca135
2016-10-18 22:40:30 +02:00
Ed Sanders 62c5b4cff9 Prevent selecting the same revision twice
Bug: T141254
Change-Id: Ic51605dca1484ce66ce9764a2291c8a947f9d376
2016-10-14 10:25:10 -07:00
jenkins-bot 5d7c37a858 Merge "Throttle the window resize event handler" 2016-10-14 09:24:26 +00:00
jenkins-bot 8987ccdcec Merge "Update linters and remove redundant ones" 2016-10-14 08:28:15 +00:00
Ed Sanders 79c0305b09 Throttle the window resize event handler
Drag-resizing a window results in hundreds of events being fired,
so limit this to one event every 250ms.

Change-Id: Ie3ace9001cd840a5d790cd269c4ae3c77649079a
2016-10-14 08:25:35 +00:00
jenkins-bot 64f6724128 Merge "Avoid parseInt" 2016-10-14 08:25:30 +00:00
jenkins-bot ef111d2342 Merge "Compute and cache directionality once" 2016-10-14 08:25:29 +00:00
Ed Sanders 08aef9f5f4 Update linters and remove redundant ones
eslint covers jshint and jscs rules.

Change-Id: Ieff7a050021e504575a774c7c9ba987b23380294
2016-10-13 12:05:10 -07:00
Ed Sanders a020b238e9 Avoid parseInt
Where we know the number contains only numerals, just cast
straight to a number using '+' operator. When getting computed
css from jQuery, use more suitable position methods instead.

Change-Id: Ia58b41a4522a1ef5a1516852821573c47e8dc9c9
2016-10-13 11:58:55 -07:00
jenkins-bot 5688a81a54 Merge "Refactor timeline browsertests" 2016-10-13 15:32:48 +00:00
jenkins-bot a77023a78b Merge "Refactor tooltips browsertests" 2016-10-13 15:31:11 +00:00
Tobias Gritschacher f3a239aa24 Refactor timeline browsertests
- Applied the Given-When-Then rule
- Added separate accessors for disabled arrow elements

Bug: T146276
Change-Id: I0278ef607f96851ed69e7373b952f5d02139cb0c
2016-10-13 15:22:57 +00:00
Tobias Gritschacher 3ca7099cc6 Refactor tooltips browsertests
- Applied the Given-When-Then rule

Bug: T146276
Change-Id: Ie9eb48cafd85ef7a00c9d9f9fd626fab5f128824
2016-10-13 15:22:46 +00:00
jenkins-bot 846fca04c2 Merge "Update beta feature screenshots to use proper layout and colours" 2016-10-13 15:21:55 +00:00
Ed Sanders 5e73b6badc Update beta feature screenshots to use proper layout and colours
Bug: T144428
Change-Id: I60e90436a6e99f7d5131b4cfe0ff4d9e956bcb94
2016-10-13 15:02:31 +00:00
WMDE-Fisch 8fef5ac005 Fix order when executing pointer update
This should always happen before updating the diff.

Change-Id: Icf6b52c3495e42e188bfa5d5307f91d0558cc7a4
2016-10-13 16:51:11 +02:00
WMDE-Fisch a111213d36 Wait for pointers to finish moving in browsertests
This will avoid checking pointer data prematurely when
they are still moving and the diff was not reloaded yet.

Change-Id: I3c29a43940e40b7c338a00b3520e5aa6b237ea4a
2016-10-13 16:41:19 +02:00
Ed Sanders d728cda396 Compute and cache directionality once
Computed CSS ($.css) is relatively slow, and directionality
should never change, so just compute it once.

Change-Id: I6519fa7f54599c498e22a348dfaedd940c860955
2016-10-12 21:07:28 -07:00
Tobias Gritschacher da8f7fb064 Update pointer position attributes immediately
Update attributes right after setting position and
don't wait until revisions are refreshed.

Change-Id: Ic32a554d6939806ce95d4e7b441ee08965b81940
2016-10-12 15:31:38 +02:00
Tobias Gritschacher 5553fe0688 Remove obsolete step
Bug: T146276
Change-Id: I9b1b8e2aa87b88bd18d58a46834e6090284314ee
2016-10-12 11:48:06 +02:00
Tobias Gritschacher 722242a600 Refactor history and pointers browsertests
- Applied the Given-When-Then rule
- Created alias for the "diff-has-loaded" step for readability
- Created higher-level step for loading the revisionslider
- Added assertions where missing
- Added ability to click the upper or lower area of revisionbars

Bug: T146276
Change-Id: Iad5abbb6e73a31afad1e2058b26ece3fbc7ad942
2016-10-12 10:46:24 +02:00
Tobias Gritschacher 70ea8fafda Always apply data-pos attribute to pointers as well
Adding position data-attribute to the pointer elements and always
apply the same value as for the revision bars they are pointing to.

This will allow us to reduce the complexity of browsertests.

Bug: T146276
Change-Id: I6e6db55204b0c45fe94a5173e297a67a7ed38d00
2016-10-10 14:52:45 +00:00
Tobias Gritschacher c2f4b64a3a Refactor help browsertest
- Applied the Given-When-Then rule
- Created alias of "close-help-dialog" step for readability

Bug: T146276
Change-Id: Icc8aeb8720025bd3c6d6bc811713fac48a9919dd
2016-10-10 14:52:24 +00:00
Translation updater bot a8e145dd42 Localisation updates from https://translatewiki.net.
Change-Id: Ifd17903343e135b13c92c00c94511e35fec63698
2016-10-09 22:55:15 +02:00
Tobias Gritschacher eeedd58f56 Refactor expand browsertests
- Applied the Given-When-Then rule to scenarios
- Added alias for one step for better readability of scenarios

Bug: T146276
Change-Id: I08aabda113d6ad9f1bbf06161484143549b13a7c
2016-10-07 16:11:12 +02:00
Tobias Gritschacher c7781efd34 Refactor autoexpand browsertests
- Applied the Given-When-Then rule to scenarios
- Small renaming of steps

Bug: T146276
Change-Id: I873be448f9b472aa7438bf525f79c403e1346641
2016-10-07 15:57:58 +02:00
jenkins-bot 6f1e1fbcc3 Merge "Only load when revisions are from the same title" 2016-10-05 09:28:22 +00:00
Translation updater bot b49f734bf4 Localisation updates from https://translatewiki.net.
Change-Id: I4382e327559db4815562fcfdbc9b26027520f18f
2016-10-04 22:40:48 +02:00
addshore 7cd9e7b36a Only load when revisions are from the same title
Bug: T147059
Change-Id: If5e3c89a6691dffbdbdeb1fcf81c3477587094bc
2016-10-04 17:47:55 +01:00
Translation updater bot 1f8f43e27e Localisation updates from https://translatewiki.net.
Change-Id: I546aa00eb3d2c8e032a26eedecbb0595d8888f6a
2016-10-02 10:41:11 +02:00
jenkins-bot 9eb29ee156 Merge "Add fixed padding for scrollbar" 2016-09-29 09:43:36 +00:00
Translation updater bot 1dbb54cc42 Localisation updates from https://translatewiki.net.
Change-Id: Ib5cba6d5a80463314db80bca02b126d06f9d83a6
2016-09-28 22:26:46 +02:00
Tobias Gritschacher 4872d31669 Add fixed padding for scrollbar
This is not very nice but the simplest I was able to come up with.

Bug: T144267
Change-Id: I959c8e6e7aa053f372455b1ec4ed5768a02d8b5d
2016-09-28 14:27:51 +02:00
Translation updater bot cce5cd63fd Localisation updates from https://translatewiki.net.
Change-Id: I2b96ebc18d10e5ef252e0f8f8c52b3247ec7071c
2016-09-26 22:42:07 +02:00
jenkins-bot 82a7af9be5 Merge "Fix pin button style" 2016-09-26 08:20:06 +00:00
Translation updater bot 9a96f4bbdc Localisation updates from https://translatewiki.net.
Change-Id: Ia14deb8b3e6990992d42f05131f8f1013801c202
2016-09-25 22:24:55 +02:00
Translation updater bot 918d8b8293 Localisation updates from https://translatewiki.net.
Change-Id: I09185185c38f6f239b76340ef3630b08c6fb48da
2016-09-24 22:42:18 +02:00
Translation updater bot 7d9dd20be1 Localisation updates from https://translatewiki.net.
Change-Id: I9505c79e2ddd1d3fd909e75b17c67bab319d8999
2016-09-23 22:36:04 +02:00