Selectmenu tests: Convert single quotes to double quotes

This commit is contained in:
Felix Nagel 2013-01-02 20:28:22 +01:00
parent c9602857dd
commit f244108d28
2 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@ module( "selectmenu: core" );
test("accessibility", function () { test("accessibility", function () {
var links, var links,
element = $('#speed').selectmenu(), element = $("#speed").selectmenu(),
button = element.selectmenu("widget"), button = element.selectmenu("widget"),
menu = element.selectmenu("menuWidget"); menu = element.selectmenu("menuWidget");

View File

@ -13,7 +13,7 @@ test( "destroy", function() {
test( "open / close", function() { test( "open / close", function() {
expect( 4 ); expect( 4 );
var element = $('#speed').selectmenu(), var element = $("#speed").selectmenu(),
menu = element.selectmenu("menuWidget"); menu = element.selectmenu("menuWidget");
element.selectmenu("open"); element.selectmenu("open");
@ -29,7 +29,7 @@ test( "open / close", function() {
test("enable / disable", function () { test("enable / disable", function () {
expect(10); expect(10);
var element = $('#speed').selectmenu(), var element = $("#speed").selectmenu(),
button = element.selectmenu("widget"), button = element.selectmenu("widget"),
menu = element.selectmenu("menuWidget"); menu = element.selectmenu("menuWidget");
@ -52,12 +52,12 @@ test("enable / disable", function () {
test("refresh - structure", function () { test("refresh - structure", function () {
expect(3); expect(3);
var element = $('#speed').selectmenu(), var element = $("#speed").selectmenu(),
menu = element.selectmenu("menuWidget").parent(); menu = element.selectmenu("menuWidget").parent();
element.find("option").eq(2).remove(); element.find("option").eq(2).remove();
element.find("option").eq(3).remove(); element.find("option").eq(3).remove();
element.append('<option value="added_option">Added option</option>'); element.append("<option value=\"added_option\">Added option</option>");
element.find("option").first() element.find("option").first()
.attr("value", "changed_value") .attr("value", "changed_value")
.text("Changed value"); .text("Changed value");
@ -72,7 +72,7 @@ test("refresh - structure", function () {
test("refresh - disabled select", function () { test("refresh - disabled select", function () {
expect(4); expect(4);
var element = $('#speed').selectmenu(), var element = $("#speed").selectmenu(),
button = element.selectmenu("widget"), button = element.selectmenu("widget"),
menu = element.selectmenu("menuWidget"); menu = element.selectmenu("menuWidget");
@ -90,7 +90,7 @@ test("refresh - disabled option", function () {
expect(1); expect(1);
var disabledItem, var disabledItem,
element = $('#speed').selectmenu(), element = $("#speed").selectmenu(),
menu = element.selectmenu("menuWidget").parent(); menu = element.selectmenu("menuWidget").parent();
element.attr("disabled", "disabled"); element.attr("disabled", "disabled");
@ -106,7 +106,7 @@ test("refresh - disabled optgroup", function () {
var i, var i,
item, item,
element = $('#files').selectmenu(), element = $("#files").selectmenu(),
menu = element.selectmenu("menuWidget").parent(), menu = element.selectmenu("menuWidget").parent(),
originalDisabledOptgroup = element.find("optgroup").first(), originalDisabledOptgroup = element.find("optgroup").first(),
originalDisabledOptions = originalDisabledOptgroup.find("option"); originalDisabledOptions = originalDisabledOptgroup.find("option");
@ -128,7 +128,7 @@ test("refresh - disabled optgroup", function () {
test( "widget", function() { test( "widget", function() {
expect( 4 ); expect( 4 );
var element = $('#speed').selectmenu(), var element = $("#speed").selectmenu(),
widgetElement = element.selectmenu( "widget" ), widgetElement = element.selectmenu( "widget" ),
menuWidgetElement = element.selectmenu( "menuWidget" ); menuWidgetElement = element.selectmenu( "menuWidget" );