Commit Graph

250 Commits

Author SHA1 Message Date
Thiemo Kreuz
6d714e1fc7 Update @covers tags of LanguageSearchTest
That second class (which is generated by the LanguageNameIndexer script)
is an integral part of the class under test.

Change-Id: I7d8dc66b4d1e86684e0de3e585d9e0a544640159
2018-08-09 19:46:14 +02:00
Kunal Mehta
10a5865f9a Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors
Change-Id: I2c868006d108b35adaa19d179bc6ebe95e29d0ef
2018-05-23 23:02:54 -07:00
libraryupgrader
f97802e4e2 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
The following sniffs are failing and were disabled:
* MediaWiki.VariableAnalysis.UnusedGlobalVariables.UnusedGlobal$wgWBClientSettings

Change-Id: Ia5423c3d7ea419b3f073f35736de7a9379d4429a
2018-04-14 07:39:31 +00:00
libraryupgrader
858ebd5552 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I06e0542d737cec5e2500aad6d85f72951f8b584d
2018-03-29 06:53:52 +00:00
libraryupgrader
0ff8a8cfda build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Ic7b9cf06ccfdce3dfc9d97805a1ae66236e6547c
2018-02-15 15:41:58 +00:00
Niklas Laxström
1e15341fd1 Use dash as separator for non-prefix matches in language name search
Bug: T186480
Change-Id: Ib785e2b070e0c5a218b236be194417f0b1fbd102
2018-02-06 17:26:21 +01:00
Kunal Mehta
7eb5b5def6 Add @covers tag
And remove unnecessary require_once, since that file is already in the
autoloader.

Change-Id: Id66d79a116043186b4d1bad73d04a62c4142524f
2018-01-24 22:30:22 -08:00
Vagrant Default User
91a54767b6 Add aliases for Georgian, Armenian, Spanish, and Japanese
Also make it possible to add multiple aliases for a language.

Bug: T178996
Change-Id: I00bb4a158caed0c1ba15d41e294281a001c917b1
2018-01-18 14:45:26 +02:00
Niklas Laxström
e87dd20cdd Improve ULS language search api
* Store prefixes and infixes separately in the data
* First match language code, then prefixes, then infixes
* Try to use suggestion either in user language or autonym first
* use formatversion=2 to avoid escaping Unicode

Using Language::fetchLanguageName might can have a small
performance impact. On the other hand there is now check
to skip languages we already found, avoiding some fuzzy
matching.

This is in a preparation for a change in jquery.uls to use
the search API more, while trying to reduce the amount of
weird autocompletion suggestions we show to the user.

Bug: T73891
Change-Id: Id94c5352d9a591969bf90144d1d2d5e758d08301
2017-11-27 14:57:42 +01:00
Niklas Laxström
a353c5ab65 Perform search on every word of language name
See e.g. T132021. This favours coverage over quality.

Change-Id: I3fc8fb1702802bc002c3d7e2941563840914f325
2017-11-23 09:14:10 +00:00
Santhosh Thottingal
4f3461a9aa Remove autonym font and its usage
I no longer maintain the Autonym font.
Also remove the tofu detection.

Bug: T135464
Bug: T135465
Change-Id: I103aab40ea5f5fc403a7ee5b23d1b634cc9c6ee1
2017-11-13 08:03:12 +00:00
Amire80
101532cfa6 Add special language names to facilitate searching
This adds several custom languages.

The addition of Punjabi addresses Bug T178070.

The addition of Chinese addresses Bug T73891.

Georgian and Catalan (Valencian) variant spellings
are added because these are the most frequent languages
that are not found in the ULS search box.

Bug: T73891
Bug: T178070
Change-Id: Ifbb08b560e454643d246379c19f725bde61917e9
2017-10-25 13:50:12 +05:30
Santhosh Thottingal
18c09bc6d3 Update language name data index with CLDR 31
Change-Id: I7c7b26a01b5c5780cbf7a19983388e16b4e97cc1
2017-10-24 17:52:29 +05:30
Željko Filipin
4251150afe Deleted all Ruby code
The only Ruby code were broken Selenium tests.

Bug: T164479
Depends-On: Ic14b86a5006da360d022af875b4aa8c119a3678a
Change-Id: I15f641cd08ec3ba483c11764a89c9ed493a570a8
2017-09-29 19:38:39 +02:00
Fomafix
b0a60f92c6 Add <!DOCTYPE html> to HTML
Change-Id: I317405c56a66334cd0eaff5983cfea909be6f6fb
2017-05-03 12:10:23 +02:00
Niklas Laxström
cb9493640a Update QUnit test for modern standards
* expect is no longer needed
* start/stop is deprecated, replaced with async/done

Change-Id: I8275af21df73f1c35a51f9a0dcf5a1811cf73ad8
2017-02-22 08:26:52 +01:00
Fomafix
47cfd9c1ae Replace $( document ).ready(...) by $(...)
In jQuery 3 $(document).ready(...) is deprecated.
https://jquery.com/upgrade-guide/3.0/#deprecated-document-ready-handlers-other-than-jquery-function

Change-Id: I1a9f578d8cf8fa2d9dd38a1b2d3a0b3c32914b74
2017-01-06 14:10:55 +01:00
Timo Tijhof
f06ac3efca Simplify ResourceLoaderULSModule with content-based versioning
* Remove manual tracking of when a hash is first seen.
  ResourceLoader is no longer time-based, rather it is content based.
  Except where a timestamp is actually wanted as key, a hash is all
  we need. The default implementation of simply calling getScript()
  and hashing its output suffices, and isn't a performance problem
  in this case.

* Also simplify getScript() by passing an object to 'mw.config.set'.
  Instead of multiple calls for each key/value. This is a no-op
  now because there is only one key.

* Fix inaccurate class comment that was copied from an unrelated
  module in MediaWiki core.

Change-Id: I9bb82cadd9caa7e584e20dd49ce30b64218326c4
2016-08-23 14:49:16 -07:00
jenkins-bot
8bb0c2f683 Merge "LanguageNameIndexer/Search: use unicode aware lowercasing" 2016-08-08 07:06:57 +00:00
Niklas Laxström
9daeacf1c5 LanguageNameIndexer/Search: use unicode aware lowercasing
With this MEÄNKELI with typos=1 finds results.

Updated test case for lowercased result. Renamed variables in test
file for clarity. Updated the default value for MW_INSTALL_PATH to
work with the default layout.

Change-Id: Id93c84d308705f55b4d2378fc8c7b7f243e1b53f
2016-08-08 08:43:15 +02:00
Kartik Mistry
d4ea8550fa Update Skeirs II font
This fixes display of Latin text in Gothic script.

Bug: T124785
Change-Id: Iaf2cc6b05591368356c241e7b65ce4a8e33c24e0
2016-07-28 15:32:27 +02:00
Kartik Mistry
38748392a0 tests: Fix path of jquery.webfonts
Otherwise test page is not working.

Change-Id: I6a220f9fa03828d78668b4852c1af634330b0972
2016-07-27 21:30:03 +05:30
Niklas Laxström
7056364168 Regenerate font test page.
Stop appending version which no longer exists. Replaced by file hash.

Change-Id: I978ff69cb9df1f0ce17ac0d7893d980d509655c1
2016-05-24 08:19:00 +02:00
Niklas Laxström
71133ffdfc First attempt at font test page generation
Does not include all variants and not all languages have example content.

Change-Id: If5b759f2ed6e8e487f73ea7a88be5cc6b741b356
2016-05-10 07:33:47 +02:00
Kunal Mehta
6b8c33e763 build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
Also added "composer fix" command.

Change-Id: I6f3f29f03abb607fbca9cec6f140875f2a3468a0
2016-05-09 18:30:34 -07:00
Siebrand Mazeland
f8487a54eb Use single quotes where possible
Change-Id: I8c0098e4840d7eff16cf5818f2247b134946d77b
2016-03-07 07:13:10 +00:00
Siebrand Mazeland
49b4cc0028 Declare functions with access modifiers
Change-Id: I047d3dc6642de07130a43ad4c2fd4a8106450aac
2016-03-05 16:10:52 +01:00
Željko Filipin
f5b55a473e Cleanup Cucumber tags in Selenium tests
Removing no longer used @clean and @login tags.

Bug: T127423
Change-Id: Id6f1abfae63b35b7e01dc9d58450a52a35d7c9df
2016-02-19 14:56:10 +01:00
Siebrand Mazeland
6a2b2e0bba Update test files
- Updated versions and order of checkers.
- Some consistency updates in Gruntfile.js.
- Updates to make jscs pass.

Change-Id: I7ed93596ff383dc713bd17af2da0472be934d59d
2016-02-18 18:51:37 +00:00
Željko Filipin
a780bcfcc1 Fixed Style/CaseIndentation RuboCop offense
Bug: 117989
Change-Id: Ifa93b8f3c2f8d6be991b1564c4c9253c4452c55f
2015-11-18 12:05:52 +01:00
Željko Filipin
513cfb87cf Fixed Style/HashSyntax RuboCop offense
Bug: 117989
Change-Id: Iecdcc3202adf9458f11310d188ab93176b03194f
2015-11-18 12:04:04 +01:00
Željko Filipin
f2b53c04f8 Fixed Style/SpaceInsideHashLiteralBraces RuboCop offense
Bug: 117989
Change-Id: I7f9704999047dd73b784aeb186a8298aba657b1c
2015-11-18 12:03:17 +01:00
Željko Filipin
022efbfa8a Fixed Style/SpaceInsideParens RuboCop offense
Bug: 117989
Change-Id: I3418ad3b0265903171e3ee7603eeea22569387b4
2015-11-18 12:02:38 +01:00
Željko Filipin
71707e11a9 Fixed Style/IndentationWidth RuboCop offense
Bug: 117989
Change-Id: Ifc6ca84cef432c1214acb0cd988146544895f400
2015-11-18 12:01:51 +01:00
Željko Filipin
22e8762cec Fixed Style/StringLiterals RuboCop offense
Bug: 117989
Change-Id: I82086ebd56ace9f85c521ef53b67e5e4bae9d607
2015-11-18 12:00:36 +01:00
Željko Filipin
81e918780a Fixed Style/Tab RuboCop offense
Bug: 117989
Change-Id: Ic4d9769df7c0ca459a7710b414d0738601107461
2015-11-18 11:59:32 +01:00
Željko Filipin
0aa649e084 Update mediawiki_selenium Ruby gem to the latest version
Bug: 117976
Change-Id: I567880afcf7dc5d70e6d4edef1db16d7923ae31c
2015-11-18 11:50:39 +01:00
Amir E. Aharoni
3a45a6ae1e Reset the preferences after each browser test scenario
Change-Id: I9ee64cc789c36a3bf726e10fb9ded40c496862da
2015-04-02 14:00:39 +03:00
Amir E. Aharoni
4c74d905f2 Fix Rubocop offense Extra empty line
Change-Id: Id87b41bb4dd82bf6665fc28582d319db6f155d6e
2015-04-02 14:00:03 +03:00
Amir E. Aharoni
4fd44df761 Disable failing Cucumber scenarios
Bug: T94158
Change-Id: Ie30260efea0a7b9df7b66f89fc732848c5d289a7
2015-03-30 12:46:44 +03:00
Santhosh Thottingal
a6beeff043 Correct a language name to make all phpunit tests pass
CLDR had updated the language name for ms

Change-Id: I661128c1d237bb169e17ee605e6fa19054a476fe
2014-12-09 11:48:11 +05:30
Niklas Laxström
314e1c8c28 Update bugzilla references to phabricator and remove some excess links
Change-Id: I2cb920fd084a1ab333678e1e3c8f4524b39cc6cd
2014-12-06 22:09:23 +00:00
Željko Filipin
1b52b14cda Prepare repository for running RuboCop after every push to Gerrit
For now ignoring all problems.

Bug: 69245
Change-Id: I16c3edf47d6bb6470f5b71754fa99fe177b65797
2014-10-21 16:45:42 +02:00
Kartik Mistry
4e56af85fa Fix permission to fonts and Gemfile to 644
Bug: 71934
Change-Id: I65781f8d0fe012a4befbcd033574a91c74b30565
2014-10-11 11:49:10 +05:30
jenkins-bot
18fe41ccf7 Merge "Fix ULS QUnit tests" 2014-09-18 11:41:00 +00:00
Niklas Laxström
d25f7f3307 Fix ULS QUnit tests
Tests were failing for two reasons: wrong modules as dependencies of the
test module and test timing out due to incorrect usage of QUnit.asyncTest
and QUnit.start() and QUnit.Stop.

While at it, did some small cleanups and converted the number of
assertions to use non-deprecated QUnit.expect() instead.

Options are saved using postWithToken of mw.API. This also rises minimum
MediaWiki version to 1.22. This allowed removing hundred lines of code.
MLEB is already 1.22 and above.

Change-Id: I46a1674e4ede48a0e331c8d201d1d847db51d9dd
2014-09-18 11:40:39 +00:00
Željko Filipin
e9259b9766 Bug 61214 is resolved, removed pending block
Paired with: Amir E. Aharoni
Bug: 61214

Change-Id: I3345ee2130d09bd230a55e0c9c33da7a36247a09
2014-09-04 15:18:11 +02:00
Željko Filipin
70363d6d85 No longer running a scenario that fails
Paired with: Amir Aharoni

Change-Id: Ic8b5771f59f84c83e345a04227188158e5b50080
2014-06-17 15:31:36 +02:00
Željko Filipin
5b39955df5 Made a scenario pending
It fails because of a known bug.

Paired with: Amir Aharoni
Bug: 61214

Change-Id: Id46d5c86e58c4e02bc491378b53c9b3f2f7a4141
2014-06-17 15:22:27 +02:00
Željko Filipin
3782c8c3a5 Page element id attributes now have "uls-" prefix
Fixes failing Selenium tests.

Also:
- updated Ruby to version 2.1.2,
- updated all Ruby gems.

Paired with: Kartik Mistry

Change-Id: I1c614cb77f0760d6a84310ce602b0934f07445de
2014-06-06 12:20:55 +02:00