Skip to content

Commit

Permalink
FLUID-4862: More clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
acheetham committed Dec 12, 2012
1 parent a04184c commit d6f5123
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions html/videoPlayer_template.html
Expand Up @@ -54,8 +54,7 @@
</ul>
</div>

<button id="fullscreen" type="button" class="flc-videoPlayer-fullscreen fl-videoPlayer-optional fl-videoPlayer-button">
</button>
<button id="fullscreen" type="button" class="flc-videoPlayer-fullscreen fl-videoPlayer-optional fl-videoPlayer-button"></button>
</div>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions tests/js/ToggleButtonTests.js
Expand Up @@ -34,15 +34,15 @@ fluid.registerNamespace("fluid.tests");
button: ".test-toggle-button"
}
};
fluid.tests.initToggleButton = function (container, testOpts) {
fluid.tests.initToggleButton = function (testOpts) {
var opts = fluid.copy(baseToggleButtonOpts);
$.extend(true, opts, testOpts);
return fluid.toggleButton(container, opts);
return fluid.toggleButton("#basic-toggle-button-test", opts);
};

toggleButtonTests.asyncTest("State change", function () {
jqUnit.expect(3);
var testComponent = fluid.tests.initToggleButton("#basic-toggle-button-test", {
var testComponent = fluid.tests.initToggleButton({
listeners: {
onReady: function (that) {
jqUnit.assertEquals("Initial state should be 'false'", false, that.readIndirect("modelPath"));
Expand All @@ -59,7 +59,7 @@ fluid.registerNamespace("fluid.tests");

toggleButtonTests.asyncTest("onPress event", function () {
jqUnit.expect(1);
var testComponent = fluid.tests.initToggleButton("#basic-toggle-button-test", {
var testComponent = fluid.tests.initToggleButton({
listeners: {
onReady: function (that) {
var toggleButton = that.locate("button");
Expand All @@ -76,7 +76,7 @@ fluid.registerNamespace("fluid.tests");
toggleButtonTests.asyncTest("Press", function () {
jqUnit.expect(3);
var testComponent;
testComponent = fluid.tests.initToggleButton("#basic-toggle-button-test", {
testComponent = fluid.tests.initToggleButton({
listeners: {
onReady: function (that) {
jqUnit.assertEquals("Initial state should be 'false'", false, that.readIndirect("modelPath"));
Expand All @@ -92,7 +92,7 @@ fluid.registerNamespace("fluid.tests");
});

toggleButtonTests.asyncTest("Default integrated functionality", function () {
var testComponent = fluid.tests.initToggleButton("#basic-toggle-button-test", {
var testComponent = fluid.tests.initToggleButton({
listeners: {
onPress: fluid.tests.onPressEventHandler,
onReady: function (that) {
Expand All @@ -115,7 +115,7 @@ fluid.registerNamespace("fluid.tests");
press: "press me",
release: "release me"
};
var testComponent = fluid.tests.initToggleButton("#basic-toggle-button-test", {
var testComponent = fluid.tests.initToggleButton({
strings: testStrings,
listeners: {
onReady: function (that) {
Expand All @@ -142,7 +142,7 @@ fluid.registerNamespace("fluid.tests");
press: "press me",
release: "release me"
},
testComponent = fluid.tests.initToggleButton("#basic-toggle-button-test", {
testComponent = fluid.tests.initToggleButton({
invokers: {
tooltipContentFunction: {
funcName: "fluid.tests.tooltipContentFunction"
Expand All @@ -161,7 +161,7 @@ fluid.registerNamespace("fluid.tests");

toggleButtonTests.asyncTest("Label text", function () {
jqUnit.expect(2);
fluid.tests.initToggleButton("#basic-toggle-button-test", {
fluid.tests.initToggleButton({
listeners: {
onReady: function (that) {
jqUnit.assertEquals("Content should contain press label text", that.options.strings.press, that.locate("button").attr("aria-label"));
Expand Down

0 comments on commit d6f5123

Please sign in to comment.