r112058 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r112057
|
r112058
|
r112059
>
Date:
22:50, 21 February 2012
Author:
jdlrobson
Status:
ok
Tags:
Comment:
adjust tests for consistency (issue with fixtures)
sometimes the tests are failing as the setup and teardown
do not create the #sq element that is needed for writeResults
to function correctly. This makes sure tests pass every time.
Modified paths:
/trunk/extensions/MobileFrontend/tests/js/test_opensearch.js
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/MobileFrontend/tests/js/test_opensearch.js
—
—
@@ -2,7 +2,7 @@
3
3
4
4
module("MobileFrontend opensearch.js - writeResults", {
5
5
setup: function() {
6
- $('<input type="search" id="search">').appendTo(document.body);
6
+ $('<div id="sq"><input type="search" id="search"></div>').appendTo(document.body);
7
7
$('<div id="results"></div>').appendTo(document.body);
8
8
},
9
9
teardown: function() {
Status & tagging log
23:29, 21 February 2012
Robmoen
(
talk
|
contribs
)
changed the
status
of r112058
[
removed:
new
added:
ok]