Toolbar Searchfield Test: Invoked as Regular Searchfield inside of a Toolbar

Related JIRA Ticket: SOHO-6448. Prior to version 4.3.1, in cases where the initialization component of the Soho library isn't used, Searchfield components were not aware of their existence inside of a toolbar parent. When used inside of a Toolbar, a searchfield should be invoked as a Toolbar Searchfield instead of a normal Searchfield. This test demonstrates functionality added to the regular Searchfield component that allows it to detect a toolbar parent, and pre-emptively invoke itself as a Toolbar Searchfield instead.

When this test completes, use a developer tools console and run this code: $('#test-searchfield').data('toolbarsearchfield'); - it should return an instance of a ToolbarSearchfield and not be undefined.

Test Toolbar