diff --git a/_base.js b/_base.js deleted file mode 100644 index 671f99f5b..000000000 --- a/_base.js +++ /dev/null @@ -1,27 +0,0 @@ -define([ - "./main", - "./a11y", // used to be in dijit/_base/manager - "./WidgetSet", // used to be in dijit/_base/manager - "./_base/focus", - "./_base/manager", - "./_base/place", - "./_base/popup", - "./_base/scroll", - "./_base/sniff", - "./_base/typematic", - "./_base/wai", - "./_base/window" -], function(dijit){ - - // module: - // dijit/_base - - /*===== - return { - // summary: - // Includes all the modules in dijit/_base - }; - =====*/ - - return dijit._base; -}); diff --git a/_base/focus.js b/_base/focus.js deleted file mode 100644 index 94f3071ca..000000000 --- a/_base/focus.js +++ /dev/null @@ -1,207 +0,0 @@ -define([ - "dojo/_base/array", // array.forEach - "dojo/dom", // dom.isDescendant - "dojo/_base/lang", // lang.isArray - "dojo/topic", // publish - "dojo/_base/window", // win.doc win.doc.selection win.global win.global.getSelection win.withGlobal - "../focus", - "../selection", - "../main" // for exporting symbols to dijit -], function(array, dom, lang, topic, win, focus, selection, dijit){ - - // module: - // dijit/_base/focus - - var exports = { - // summary: - // Deprecated module to monitor currently focused node and stack of currently focused widgets. - // New code should access dijit/focus directly. - - // _curFocus: DomNode - // Currently focused item on screen - _curFocus: null, - - // _prevFocus: DomNode - // Previously focused item on screen - _prevFocus: null, - - isCollapsed: function(){ - // summary: - // Returns true if there is no text selected - return dijit.getBookmark().isCollapsed; - }, - - getBookmark: function(){ - // summary: - // Retrieves a bookmark that can be used with moveToBookmark to return to the same range - var sel = win.global == window ? selection : new selection.SelectionManager(win.global); - return sel.getBookmark(); - }, - - moveToBookmark: function(/*Object*/ bookmark){ - // summary: - // Moves current selection to a bookmark - // bookmark: - // This should be a returned object from dijit.getBookmark() - - var sel = win.global == window ? selection : new selection.SelectionManager(win.global); - return sel.moveToBookmark(bookmark); - }, - - getFocus: function(/*Widget?*/ menu, /*Window?*/ openedForWindow){ - // summary: - // Called as getFocus(), this returns an Object showing the current focus - // and selected text. - // - // Called as getFocus(widget), where widget is a (widget representing) a button - // that was just pressed, it returns where focus was before that button - // was pressed. (Pressing the button may have either shifted focus to the button, - // or removed focus altogether.) In this case the selected text is not returned, - // since it can't be accurately determined. - // - // menu: dijit/_WidgetBase|{domNode: DomNode} structure - // The button that was just pressed. If focus has disappeared or moved - // to this button, returns the previous focus. In this case the bookmark - // information is already lost, and null is returned. - // - // openedForWindow: - // iframe in which menu was opened - // - // returns: - // A handle to restore focus/selection, to be passed to `dijit.focus` - var node = !focus.curNode || (menu && dom.isDescendant(focus.curNode, menu.domNode)) ? dijit._prevFocus : focus.curNode; - return { - node: node, - bookmark: node && (node == focus.curNode) && win.withGlobal(openedForWindow || win.global, dijit.getBookmark), - openedForWindow: openedForWindow - }; // Object - }, - - // _activeStack: dijit/_WidgetBase[] - // List of currently active widgets (focused widget and it's ancestors) - _activeStack: [], - - registerIframe: function(/*DomNode*/ iframe){ - // summary: - // Registers listeners on the specified iframe so that any click - // or focus event on that iframe (or anything in it) is reported - // as a focus/click event on the ` - - run popup test - - diff --git a/tests/_base/test_FocusManager.html b/tests/_base/test_FocusManager.html deleted file mode 100644 index 8c827aeae..000000000 --- a/tests/_base/test_FocusManager.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - dijit.focus Test - - - - - - - -

Focus/Selection Save/Restore Test

-

This is for testing whether focus and selection can be saved and restored by the focus manager.

-

- If you press the "Save focus" button, it should save the focus, but not the selection. - This is because merely pressing that button makes the focused textarea/input lose focus, - which also loses the selection. (We fudge things by saving the previously focused element rather - than the currently focused one.) -

-

- If you press the "Save focus/selection state after 3 seconds" button, and then focus an input/textarea - and select some text, it should (after three seconds) save both the focused element and the selection. -

-

This paragraph contains text to select for testing purposes.

-
-
-
-
- -
- - - - - - - diff --git a/tests/_base/test_focusWidget.html b/tests/_base/test_focusWidget.html deleted file mode 100644 index 1b0281f21..000000000 --- a/tests/_base/test_focusWidget.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - dijit.focus Test - - - - - - - - -

Widget Focus Test

-

- This is for testing code to detect onBlur and onFocus on a widget level.
- Focused widgets' borders will turn red.
- Also, check the console log for focus and blur events on widgets. -

- -
-
-
- -
-
- - - - -
-
- Hello world, this is an editor -
-
-
-
- -
- -
-
- - -
- - -
- push me - -
-
-
- - diff --git a/tests/_base/wai.html b/tests/_base/wai.html deleted file mode 100644 index 0389b3911..000000000 --- a/tests/_base/wai.html +++ /dev/null @@ -1,113 +0,0 @@ - - - Dijit wai unit test - - - - -
-
-
- - - -
- - diff --git a/tests/module.js b/tests/module.js index cd71ef18b..57a9d9282 100644 --- a/tests/module.js +++ b/tests/module.js @@ -1,5 +1,4 @@ define([ - "./_base/module", "./infrastructure-module", "./general-module",