Commit graph

3370 commits

Author SHA1 Message Date
C. Scott Ananian
fb125de072 Allow HTML5 <rtc> tag (ruby support for East Asian typography).
We currently allow <ruby>, <rt>, <rb>, and <rp> but not the W3C HTML5
<rtc> element.  Fix that.

(Note that <rb> and <rtc> are new additions to HTML5 which currently
appear in the W3C but not the WHATWG version of the HTML5 spec.
Support for these has already been merged in gecko and webkit and
the editor plans to update the WHATWG spec.)

Bug: 67042
Change-Id: I8c0e65d782b6d23057a9723b87323b28e8bf8852
2014-07-02 18:45:14 -04:00
jenkins-bot
e1318c96aa Merge "chunky_png Ruby gem is not used" 2014-07-02 21:08:03 +00:00
Cmcmahon
7cf1051458 QA: need login tags for Jenkins build
Change-Id: I6663c6f6f59d692a9825ff8b462b30e1b2214ae0
2014-07-02 08:37:32 -07:00
jenkins-bot
5141b5753b Merge "Workaround image magick issue with greyscale xcf files" 2014-07-02 13:58:28 +00:00
Željko Filipin
72e4ca7f83 chunky_png Ruby gem is not used
Also fixed the order of gems in env.rb and updated Ruby gems in
Gemfile.lock.

Change-Id: I1ff294a50f37373bfdd3d04404c498e94b6f79ba
2014-07-02 15:55:58 +02:00
jenkins-bot
3d222e07c6 Merge "ApiOptionsTest: Simplify hook restoration" 2014-07-01 17:26:52 +00:00
Timo Tijhof
820bb47490 ApiOptionsTest: Simplify hook restoration
Change-Id: I2afc35b45caf9ddfd34fb0bba0839987b7fb2ed4
2014-07-01 18:32:05 +02:00
Timo Tijhof
2e3b1076c0 UserTest: Cover User::isIP and User::isValidUserName better
Change-Id: I4663c37871492c1415152b2af0fda4f6de4f212f
2014-07-01 18:31:07 +02:00
jenkins-bot
7a0cec17d5 Merge "qunit.completenessTest: Ignore mw.loader.moduleRegistry" 2014-06-30 20:30:52 +00:00
jenkins-bot
8d9011f56f Merge "Fix CSSMin url() remapping when comments in CSS contain curly braces" 2014-06-30 18:50:15 +00:00
jenkins-bot
a85d6665cc Merge "Make Preferences tests language-agnostic" 2014-06-30 17:12:24 +00:00
Cmcmahon
e420ede80f Make Preferences tests language-agnostic
Change-Id: I2a0bd6e4306de11a8b3f13505bc3e65439211e23
2014-06-30 09:58:31 -07:00
jenkins-bot
7b488f64ee Merge "Added missing Cucumber tags to Selenium tests" 2014-06-30 14:23:16 +00:00
Stephan Gambke
3b1b2b0c33 Fix CSSMin url() remapping when comments in CSS contain curly braces
Remapping of url()s was thrown off if the CSS contained comments
with curly braces. To fix, replace all block comments (except @embed
directives) with placeholders before url() processing and swap them
back in afterwards. Patch also includes tests.

Bug: 60077
Change-Id: If18a93c17ea9bcd529f6a664aa2dcc51d4a37f38
2014-06-30 09:14:10 +00:00
Timo Tijhof
0c71217d09 qunit.completenessTest: Ignore mw.loader.moduleRegistry
It was iterating over it and considering its 'script' properties
to be methods that had to be tested.

The CompletnessTest before this change is filled with stuff like:
- loader.moduleRegistry.skins.vector.js.script
- loader.moduleRegistry.mediawiki.api.script
- loader.moduleRegistry.mediawiki.Title.script
- ..

And was actually causing it to hit hard limit and thus actual
lots of actual methods were no longer inspected by the test.

Change-Id: I13fbf1224b48aa34a7bb01fdc0543023e502bb4f
2014-06-29 20:59:43 +00:00
aude
aabf9345f0 Fix uncaught ApiFormatXml exception with api debuginfo
Also added tests to cover this.

Bug: 67246
Change-Id: Ifb2e392d3277a4702832727f70c77b170d4b2bf5
2014-06-28 20:35:52 +02:00
Željko Filipin
d3d0e72a7b Added missing Cucumber tags to Selenium tests
Also:
- updated Ruby to version 2.1.2
- added missing ruby-gemset section to Gemfile

Change-Id: I2e6e7213ce51e8a15ecea34f76dd265d9d2f8594
2014-06-28 16:09:39 +02:00
Max Semenik
214d590f77 Fix RequestContextTest screwing up $wgUser
Change-Id: Ib3fabc1b016f33bf188682f7f894e8f52417ee40
2014-06-27 14:18:07 -07:00
jenkins-bot
86887ffd17 Merge "Reset RequestContext between tests" 2014-06-27 18:46:21 +00:00
Max Semenik
859aa19359 Reset RequestContext between tests
Its state can change when people do something with objects it returns or
when they alter globals like $wgRequest. By resetting this singleton, we
ensure that no such change will propagate outside of a test.

Change-Id: I7e8598716d810a09c17f80a05deecab617b62346
2014-06-27 10:59:47 -07:00
jenkins-bot
6fc11b56aa Merge "Port preferences test from /qa repo" 2014-06-27 15:33:49 +00:00
Cmcmahon
36e9a6d834 Port preferences test from /qa repo
Add tests for preferences, make  core tests language-independent.
Change-Id: I1ba4e2c53a9e1bdb7b832efec4c2c8f6f64d2b86
2014-06-27 08:27:25 -07:00
jenkins-bot
e9df496d11 Merge "Add parser test for "extra interlanguage links"." 2014-06-27 14:04:26 +00:00
jenkins-bot
78a3649058 Merge "Make SpecialPreferencesTest::testBug41337 non-risky" 2014-06-27 00:57:48 +00:00
Ori Livneh
c35b77507e Make SpecialPreferencesTest::testBug41337 non-risky
PHPUnit treats tests that make no assertions as "risky" because they make it
difficult to distinguish successful test runs from programmer error. To make
SpecialPreferencesTest::testBug41337 non-risky, assert that the execute method
returns null.

Change-Id: I4c199d2b81037e6ca2b2862418c4f8a8352c777e
2014-06-26 17:48:55 -07:00
C. Scott Ananian
09498e1d7f Add parser test for "extra interlanguage links".
This support was added in https://gerrit.wikimedia.org/r/111390
but no parser tests were added at that time.

Bug: 32189
Change-Id: I299ce844919b3f20b3ce116adf64b37dd95325d0
2014-06-26 22:46:13 +00:00
Jackmcbarn
c313a75c80 Support {{!}} as a magic word
Add {{!}} as a magic word that expands to a pipe. Parsoid already does
this, so we know it isn't going to cause major breakage.

Change-Id: I1f857417d224d6443504074a5add852df3975b89
2014-06-26 14:56:04 -07:00
jenkins-bot
6e08e9ddab Merge "test: Remove MagicVariableTest#testServernameFromDifferentProtocols" 2014-06-26 15:49:35 +00:00
Timo Tijhof
cde0829227 Add json2.js polyfill (v2014-02-04; with module skip function)
Source from https://github.com/douglascrockford/JSON-js/blob/3d7767b/json2.js

* Deprecate jquery.json which is a little dated and less efficient
  because it always downloads the entire polyfill to the client
  even if it isn't needed. We also can't add a skip function to
  jquery.json because it exposes a different interface ($.toJSON
  instead of JSON.stringify).

* Update 'mediawiki.inspect' to use 'json' instead.

* Update 'jquery.jStorage' to use 'json' instead (doesn't need
  a change to its code as it looks for either JSON.stringify or
  $.toJSON by design).

Change-Id: I8978be3491b08fbbfd83f1306e816b1b20f16161
2014-06-25 14:17:36 +00:00
Timo Tijhof
0c2a013beb test: Remove MagicVariableTest#testServernameFromDifferentProtocols
This test was causing failures locally when wgServer != localhost
because {{SERVERNAME}} is derived from wgServerName, not wgServer
and the test is only mocking wgServer.

> MagicVariableTest::testServername.. with data set #2 ('//localhost/')
> Magic servername should be <localhost:string>
> Failed asserting that two strings are identical.
> --- Expected
> +++ Actual
> @@ @@
> -localhost
> +krinkle.dev

This value is no longer derived by the Parser, but is instead
set using wfParserUrl in Setup.php.

Remove this obsolete test and add any missing test cases for
wgParserUrl to its test suite.

Change-Id: I7d7d201cb46841e63dac8ab9fd81b45b252264a3
2014-06-25 12:08:48 +02:00
jenkins-bot
b52d47b74d Merge "Add deprecation messages to static methods in Article.php" 2014-06-25 01:01:28 +00:00
jenkins-bot
1b8657de2a Merge "Return a TTL when formatting times" 2014-06-24 22:57:17 +00:00
jenkins-bot
4f1390819a Merge "browser acceptance tests" 2014-06-24 22:26:16 +00:00
withoutaname
34b98c7b2c Add deprecation messages to static methods in Article.php
The referenced hooks simply call the corresponding hooks in WikiPage.php,
so it would be better to call them from WikiPage.php directly.

Change-Id: Ia0cf526c625d38cd941a1166876c13697be87a86
2014-06-24 12:47:58 -07:00
C. Scott Ananian
9b8c1fe24a Sync up with Parsoid parserTests.
This now aligns with Parsoid commit 5c1681a53606e80522afc6e2496aaef2b30aad4c

Change-Id: Ic871d300eec6ba268eceef6b1014884c763b0e1c
2014-06-24 14:25:23 -04:00
jenkins-bot
90f7fbd20a Merge "Set wgScript in LinkerTest" 2014-06-24 11:53:29 +00:00
jenkins-bot
f8067de9fc Merge "Allow fragments in link= parameter in <gallery> tags." 2014-06-24 08:10:13 +00:00
aude
dfbc4d7f32 Set wgScript in LinkerTest
otherwise tests fail if you don't have this setting.

Change-Id: I598b83c348dc54908225ee398787bf300d473656
2014-06-24 09:39:17 +02:00
jenkins-bot
66ce50f591 Merge "Add support for testing transparent tags" 2014-06-23 22:53:15 +00:00
Brian Wolff
d7d8458bc0 Allow fragments in link= parameter in <gallery> tags.
This brings the image syntax in gallery tags inline with normal
syntax. Handle <gallery>File:foo.png|link=bar#baz</gallery>
properly.

Bug: 62343
Change-Id: If6149ccc19f70605ad4481e4da2ca55676d6001d
2014-06-23 19:45:31 -03:00
cmcmahon
72e85be15a browser acceptance tests
Apropos of https://www.mediawiki.org/wiki/Wikimedia_Release_and_QA_Team/Quarterly_review,_April_2014#Action_items

Tests pass on a bare wiki install, beta enwiki, beta dewiki, beta hewiki

Bug: 66272

Ported create_account.feature and supporting files from /qa/browsertest without needing updates
Change-Id: I2b4bfa512a33ff31cc0369dfd9ec19cb875d5e36
2014-06-23 08:03:06 -07:00
Brian Wolff
2fa5569b7e Fix typo in Special:MIMESearch causing minor part to be ignored.
img_minor_mime was being added to wrong part of query info
array, and thus was being ignored.

Whoops.

Change-Id: I55f45f5ae9621ff1319b34a2aa85cb4bd2c96253
Follow-up: c93baa941a
2014-06-21 14:19:42 -03:00
Jackmcbarn
2d1c6e2634 Add support for testing transparent tags
Allow transparent tag hooks to be loaded during parser tests the way that
regular and function tag hooks can be.

Change-Id: I28ac9cc239628c248f72898d247fa1f6e2c308bd
2014-06-20 11:36:08 -04:00
Brian Wolff
24dcc22614 Workaround image magick issue with greyscale xcf files
IM doesn't seem to properly interpret greyscale xcf files
as being greyscale. Tell it to just take the red channel
in such a case.

Bug: 66323
Change-Id: I46302d43e1029d815be99f481f3942481becd74f
2014-06-19 21:06:23 -03:00
Jackmcbarn
368aa5dc67 Make RECOVER_ORIG preserve extension tags
Add PPFrame::NO_TAGS, set by PPFrame::RECOVER_ORIG, to preserve extension
tags rather than expanding them.

Bug: 22683
Change-Id: I427333a20d32eb711a7b5d5ac8b780ef89c752a1
2014-06-19 18:12:14 +00:00
Reedy
495040e614 Update Language::userAdjust() $ts parameter hint to be string
Will technically still take an int (it's parsed around anyway), but
should be passed as a string

Mostly for HipHop stuffs

Change-Id: Id940028d581e34ca2e37a0730ca5766a08fc10e2
2014-06-18 23:00:23 +01:00
Brian Wolff
bc6d939eaa Fix DjVu test (Make sure to check for djvutxt binary)
Bug: 61070
Change-Id: Ib5e7c89a51d0872b32bbcd6b7e3db830c2e5e8a6
2014-06-18 19:11:02 +00:00
addshore
a0a72df1e7 Ignore days of random failing tests in wfTimestampTest
This switches 2 of the testcases to use a regex
instead of an exact match

Bug: 64946
Change-Id: I24b64b34787eb1b6bbf6e6b6178a2bbf5eb7c32c
2014-06-18 18:36:34 +00:00
Sam Smith
0bb3d2a499 Make ResourceLoaderFileModule#getAllStyleFiles include all skin styles
* Add the ResourceLoaderFileModule#getAllSkinStyleFiles method,
  which returns all of the skinStyles files for a given module
* The LessFileCompilationTest and checkLess.php script, which use
  the #getAllStyleFile method, now validate all LESS style files

Bug: 63343
Change-Id: Ib2eb5761919c648aea4ae58f8d0531799fe7982b
2014-06-17 19:38:58 +00:00
jenkins-bot
166191535f Merge "Add tests for API's assert={user|bot}" 2014-06-16 01:33:24 +00:00