From 7a5a77da50e5e2401043410434c49971ce504653 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 23 Apr 2012 10:15:17 -0400 Subject: Tests: Rename {widget}_defaults.js -> {widget}_common.js --- tests/unit/tabs/tabs.html | 2 +- tests/unit/tabs/tabs_common.js | 16 ++++++++++++++++ tests/unit/tabs/tabs_common_deprecated.js | 29 +++++++++++++++++++++++++++++ tests/unit/tabs/tabs_defaults.js | 16 ---------------- tests/unit/tabs/tabs_defaults_deprecated.js | 29 ----------------------------- tests/unit/tabs/tabs_deprecated.html | 2 +- 6 files changed, 47 insertions(+), 47 deletions(-) create mode 100644 tests/unit/tabs/tabs_common.js create mode 100644 tests/unit/tabs/tabs_common_deprecated.js delete mode 100644 tests/unit/tabs/tabs_defaults.js delete mode 100644 tests/unit/tabs/tabs_defaults_deprecated.js (limited to 'tests/unit/tabs') diff --git a/tests/unit/tabs/tabs.html b/tests/unit/tabs/tabs.html index 7f60ad277..a79d30e0e 100644 --- a/tests/unit/tabs/tabs.html +++ b/tests/unit/tabs/tabs.html @@ -26,7 +26,7 @@ - + diff --git a/tests/unit/tabs/tabs_common.js b/tests/unit/tabs/tabs_common.js new file mode 100644 index 000000000..7ffb05da4 --- /dev/null +++ b/tests/unit/tabs/tabs_common.js @@ -0,0 +1,16 @@ +TestHelpers.commonWidgetTests( "tabs", { + defaults: { + active: null, + collapsible: false, + disabled: false, + event: "click", + fx: null, + + // callbacks + activate: null, + beforeActivate: null, + beforeLoad: null, + create: null, + load: null + } +}); diff --git a/tests/unit/tabs/tabs_common_deprecated.js b/tests/unit/tabs/tabs_common_deprecated.js new file mode 100644 index 000000000..fdcff21b3 --- /dev/null +++ b/tests/unit/tabs/tabs_common_deprecated.js @@ -0,0 +1,29 @@ +TestHelpers.commonWidgetTests( "tabs", { + defaults: { + active: null, + ajaxOptions: null, + cache: false, + collapsible: false, + cookie: null, + disabled: false, + event: "click", + fx: null, + idPrefix: "ui-tabs-", + panelTemplate: "
", + spinner: "Loading…", + tabTemplate: "
  • #{label}
  • ", + + // callbacks + activate: null, + add: null, + beforeActivate: null, + beforeLoad: null, + create: null, + disable: null, + enable: null, + load: null, + remove: null, + select: null, + show: null + } +}); diff --git a/tests/unit/tabs/tabs_defaults.js b/tests/unit/tabs/tabs_defaults.js deleted file mode 100644 index 7ffb05da4..000000000 --- a/tests/unit/tabs/tabs_defaults.js +++ /dev/null @@ -1,16 +0,0 @@ -TestHelpers.commonWidgetTests( "tabs", { - defaults: { - active: null, - collapsible: false, - disabled: false, - event: "click", - fx: null, - - // callbacks - activate: null, - beforeActivate: null, - beforeLoad: null, - create: null, - load: null - } -}); diff --git a/tests/unit/tabs/tabs_defaults_deprecated.js b/tests/unit/tabs/tabs_defaults_deprecated.js deleted file mode 100644 index fdcff21b3..000000000 --- a/tests/unit/tabs/tabs_defaults_deprecated.js +++ /dev/null @@ -1,29 +0,0 @@ -TestHelpers.commonWidgetTests( "tabs", { - defaults: { - active: null, - ajaxOptions: null, - cache: false, - collapsible: false, - cookie: null, - disabled: false, - event: "click", - fx: null, - idPrefix: "ui-tabs-", - panelTemplate: "
    ", - spinner: "Loading…", - tabTemplate: "
  • #{label}
  • ", - - // callbacks - activate: null, - add: null, - beforeActivate: null, - beforeLoad: null, - create: null, - disable: null, - enable: null, - load: null, - remove: null, - select: null, - show: null - } -}); diff --git a/tests/unit/tabs/tabs_deprecated.html b/tests/unit/tabs/tabs_deprecated.html index c22ec3369..9bb8e413e 100644 --- a/tests/unit/tabs/tabs_deprecated.html +++ b/tests/unit/tabs/tabs_deprecated.html @@ -24,7 +24,7 @@ - + -- cgit v1.2.3