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 @@
33
44 module("MobileFrontend opensearch.js - writeResults", {
55 setup: function() {
6 - $('<input type="search" id="search">').appendTo(document.body);
 6+ $('<div id="sq"><input type="search" id="search"></div>').appendTo(document.body);
77 $('<div id="results"></div>').appendTo(document.body);
88 },
99 teardown: function() {

Status & tagging log