Commit graph

693 commits

Author SHA1 Message Date
jenkins-bot d9a4c8b0a3 Merge "QA: add a browser test to cover "enable previews" feature" 2016-04-28 08:40:51 +00:00
Baha 85cc7e2257 QA: add a browser test to cover "enable previews" feature
Test whether:
* "Enable previews" footer link correctly appears/disappears;
* A hovercard correctly shows/doesn't show when enabled/disabled.

Bug: T133054
Change-Id: I55f311b6b8845e6ebf4cc5698758afd1f9042a45
2016-04-27 20:22:34 +00:00
Sam Smith 91d3b510cb Add test to cover mw.popups.setupTriggers
Follow up Id173b21.

Bug: T133020
Change-Id: Id97cc7c7cb546d09c196dab8377e9e61a0b12f85
2016-04-27 19:20:27 +00:00
Translation updater bot 28af47b231 Localisation updates from https://translatewiki.net.
Change-Id: Ia2bb5e371825809efd66311d486a7c5a8bce27af
2016-04-26 22:30:46 +02:00
Sam Smith 5f69a721fc Add missing mw.popups.selectPopupElements test case
Follow up on Id173b21 by adding a test case that covers the test of
whether the anchor's title is in a content namespace.

Bug: T133020
Change-Id: I414a5ff8aa4edf58dd0d1947db077afdd1d22f39
2016-04-26 09:25:25 +01:00
jenkins-bot 9b7797dd6d Merge "Add QUnit tests to cover ext.popups.core.js" 2016-04-22 08:54:00 +00:00
jenkins-bot 57bc00c9ad Merge "QA: Updates to browser tests to avoid flakiness" 2016-04-20 22:39:39 +00:00
Baha 728073d9e4 QA: Updates to browser tests to avoid flakiness
* Wait until the form submits successfully, verifying it
worked by testing for the notification toast.
* Drop sleep statements where possible - instead use when_present
Use one when asserting something doesn't show to avoid false positives
* Allow more time for the hovercard to show (5s) - API requests might take
longer than default time.
* Assert popups JavaScript loads before continuing with test. This
helped trap a bug in testing and will be useful for future.

Bug: T133019
Depends-On: Icb1e6ddc8f95da5e4b4de2916d292694c11ba731
Change-Id: Iacd3beedf44cadffcf0285231b2df7e5b64294f6
2016-04-20 20:02:13 +00:00
Baha 06b49dc6b8 Add QUnit tests for ext.popups.logger
Bug: T133024
Depends-On: Icb1e6ddc8f95da5e4b4de2916d292694c11ba731
Change-Id: I73fee2e3351de357f8f60bf6287a876e245117df
2016-04-20 18:33:53 +00:00
Baha b1ec40a202 Add QUnit tests to cover ext.popups.core.js
Bug: T133020
Depends-On: Icb1e6ddc8f95da5e4b4de2916d292694c11ba731
Change-Id: Id173b215701abb87f998722526d643f36f3c0308
2016-04-20 18:33:50 +00:00
Sam Smith 6a0e108384 QA: Enable Hovercards beta feature in browser tests
Bug: T133019
Change-Id: I63faec86a756f189a40d0f61c75e33060c5395fb
2016-04-20 18:20:27 +00:00
Phuedx def7e41192 Merge "Add browser test for hovering link" 2016-04-19 13:28:04 +00:00
Baha 3e78503e8e Add browser test for hovering link
Basic feature of browsing a page, hovering a link, and showing/hiding
a hovercard.

Depends-On: Ie94fa399512be041f12b2f7cada20d4206ddaf82
Bug: T133019
Change-Id: Idf39e7e2a3b343babd6d0538225b4ef9002e8ac1
2016-04-19 13:12:24 +00:00
jenkins-bot 9f83c10ad8 Merge "Bold only first instance of title in extract" 2016-04-18 10:14:19 +00:00
Baha 8f3832e68a Add X-Analytics request header when fetching popup data
API requests to fetch the hovercards data now include
`X-Analytics: preview=1` header so that HoverCard hovers are
easily distinguishable in Hive.

Bug: T129425
Change-Id: I69df51a627951c4373b3b7463ab5b2c0a129faa1
2016-04-13 14:32:00 -04:00
Prateek Saxena 5f92196541 Bold only first instance of title in extract
Bug: T132523
Change-Id: I3145186264edd23ca898365ae55184cbe96ada6a
2016-04-13 21:24:42 +05:30
Translation updater bot e53a093c73 Localisation updates from https://translatewiki.net.
Change-Id: Ib4a0ae699c368d3239f14fb23c2cf6e087c3b45f
2016-04-10 20:06:43 +02:00
Translation updater bot acd15bcae2 Localisation updates from https://translatewiki.net.
Change-Id: If47645a451cc113b0d7a392958bfccb64f9aa5f9
2016-03-28 22:44:50 +02:00
Translation updater bot fd85826ec5 Localisation updates from https://translatewiki.net.
Change-Id: Ic5e19931eefab8d5a5048d054627a5bf92495227
2016-03-27 21:22:00 +02:00
Translation updater bot 081f03a6b2 Localisation updates from https://translatewiki.net.
Change-Id: I01377b42ad7f06e70c7111edf178ecf3b78512f8
2016-03-22 22:33:22 +01:00
Translation updater bot 6ac7a22f06 Localisation updates from https://translatewiki.net.
Change-Id: I9cfbbfa4c288f0eda76328d670b4d15e4b584afc
2016-03-21 23:35:15 +01:00
Translation updater bot 91a4956adc Localisation updates from https://translatewiki.net.
Change-Id: I3b49ff5fdcfeaf9d189c08269640bc824ae46002
2016-03-18 22:43:32 +01:00
Translation updater bot a34d38e3d0 Localisation updates from https://translatewiki.net.
Change-Id: I87962ad1ce1e054472909336368ffec9fe4aa0a0
2016-03-15 23:04:01 +01:00
Translation updater bot 0b42430450 Localisation updates from https://translatewiki.net.
Change-Id: I97f494245644c71f80ffcd67fdc3b41aa03459ce
2016-03-14 22:52:24 +01:00
Translation updater bot c62fc1a72f Localisation updates from https://translatewiki.net.
Change-Id: Ibb8593bc10276ba4b84eef96e0ecae8dce872dea
2016-03-13 22:55:57 +01:00
Translation updater bot 8b8ab08fc5 Localisation updates from https://translatewiki.net.
Change-Id: I8b6a4dca4093cc03d5c1149a89e331c3043b018e
2016-03-12 21:12:38 +01:00
jenkins-bot 3f47fe91de Merge "Add link preview feature to mobile beta mode" 2016-03-11 23:43:01 +00:00
Florian c93047666e Add link preview feature to mobile beta mode
Linkpreview will try to fetch a text extract using the api and, if this
doesn't fail, show the extract as a drawer with a button "Continue to
article". If the query fails, it will redirect the user to the article
directly.

Bug: T113243
Depends-On: I6d8c5b80e70c3d8d1a92a70cc91e1b90d598cb0f
Change-Id: Idbaae9fe2decd89b73e623a25fbd39464c316fb2
2016-03-05 18:22:30 +01:00
jenkins-bot 9a52dfdc51 Merge "Revert "Compress PNGs with zopflipng"" 2016-02-28 00:40:23 +00:00
jenkins-bot 778b658300 Merge "Revert "Compress PNGs with zopflipng"" 2016-02-28 00:29:47 +00:00
Legoktm 1fc0788e3f Revert "Compress PNGs with zopflipng"
This reverts commit 6a0dc3964f.

Change-Id: Ife0256de3ad6226d0c4e124d3513d4731eec00b7
2016-02-28 00:08:24 +00:00
Legoktm 48d5a38587 Revert "Compress PNGs with zopflipng"
This reverts commit 56c3f71426.

Change-Id: Iab018ac5cc772aede47c19dfa9d77e81b1a7c00f
2016-02-28 00:08:03 +00:00
jenkins-bot 03a4e69041 Merge "Compress PNGs with zopflipng" 2016-02-21 02:02:13 +00:00
Ori Livneh 56c3f71426 Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: I3ec96a8e75ea521315b5944e91ead5e60297c6df
2016-02-21 01:19:52 +00:00
Ori Livneh 6a0dc3964f Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: I0bcc35a4d27a7589cd1a3f6569ef8089e8b6ec02
2016-02-21 00:28:26 +00:00
Translation updater bot 145e9c5710 Localisation updates from https://translatewiki.net.
Change-Id: Iab5114acc0b3f3d92ffa3bbe71914efb5d285afe
2016-02-13 23:01:38 +01:00
Translation updater bot fcda850d33 Localisation updates from https://translatewiki.net.
Change-Id: I219249730065b60786f3463afe632d627b5bd716
2016-02-08 22:15:17 +01:00
Florian bbe958bb5d Prepare Popups for adding of mobile specific Popups implementation
For the work on T113243, the Popups extension should be structured in a
more flexible way. This is achieved with this change.

Following has changed:
 * The main/core logic of Popups now lives in ext.popups.core to be shareable
   between implementations
 * The desktop specific logic lives in ext.popups.desktop now, the frontend init
   code in ext.popups.desktopTarget and the desktop renderer in
   ext.popups.renderer.desktopRenderer

This change doesn't change the functionality of Popups.

Change-Id: I72121e0a1e4b2952f85dc1bc8cf59d06b8d22f47
2016-01-30 23:09:55 +01:00
Translation updater bot e246618cda Localisation updates from https://translatewiki.net.
Change-Id: I8ffe67a42c76d2574cf6dcf3512dbefdda212acf
2016-01-23 22:28:17 +01:00
Prateek Saxena bb321b2f23 Stop emptying link title if a TextExtract was not returned
Bug: T123460
Change-Id: I0989d32b391d849c56fd85bb05cb28cc079bc759
2016-01-13 09:59:22 +05:30
Translation updater bot dc58be005c Localisation updates from https://translatewiki.net.
Change-Id: I2bebd3c88fab6368ed388c13dbae1fd3f1382f91
2016-01-12 22:47:47 +01:00
Translation updater bot d3aab29c62 Localisation updates from https://translatewiki.net.
Change-Id: Icc0bb8fb2b68079996fe1aaa9fd609a224e162fa
2016-01-08 22:20:08 +01:00
jenkins-bot 83a98925af Merge "renderer: Use NavigationPopups settings where available" 2016-01-08 06:35:48 +00:00
Prateek Saxena 853ee800a3 renderer: Unregister mouseleave handler on mw.popups.$popus on closePopup
Bug: T68315
Change-Id: I3da1b4629841a3059d585e424760b331570a3116
2016-01-08 10:31:16 +05:30
Kunal Mehta 47d80e06fc build: Updating development dependencies
* jakub-onderka/php-parallel-lint: 0.9 → 0.9.2

Change-Id: Ic8fe9acb86de613c795ed0f60e4291f71722b85e
2016-01-05 10:39:25 -08:00
Kunal Mehta 15336e307a build: Updating development dependencies
* grunt-jsonlint: 1.0.5 → 1.0.7

Change-Id: I0fd966cf85bf636e6f91b86582c53bcb833561dc
2015-12-29 11:48:27 -08:00
Translation updater bot 326093e1c1 Localisation updates from https://translatewiki.net.
Change-Id: I7b9ab421c4767e55c3a757e9534a3ffb6f21f121
2015-12-25 21:54:15 +01:00
Prateek Saxena d760c12fe0 Stop showing popup for cancel link on the Wikitext editor
Bug: T122078
Change-Id: Ib275605c649829a1a04b9bdcb8ffe446921aed0c
2015-12-23 19:08:33 +05:30
Kunal Mehta 131563a68c Move EventLogging schema registration into extension.json
Change-Id: I9dea6584d5e811d761542f207a5f63357479d644
Depends-On: I01aa2887a9b98c2ef52cacc3a892390a72b4a3ba
2015-12-22 16:50:39 -08:00
Kunal Mehta 1dc7725389 Use ExtensionRegistry to determine whether TextExtracts is installed
Bug: T121777
Change-Id: Ic017615993b7d1ba746424ce6b576b71ba72b25f
2015-12-19 22:59:31 +00:00