4 <script src="../../../build/tizen-web-ui-fw/latest/js/jquery.js"></script>
5 <script src="../../../build/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
6 <script src="../../../build/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
7 data-framework-theme="tizen-white"
8 data-framework-viewport-scale=false>
10 <link rel="stylesheet" href="../../../libs/js/jquery-mobile-1.1.0/external/qunit.css" />
11 <script src="../../../libs/js/jquery-mobile-1.1.0/external/qunit.js"></script>
12 <script src="searchbar-tests.js"></script>
13 <title>Searchbar</title>
17 <h1 id="qunit-header">Searchbar</h1>
18 <h2 id="qunit-banner"></h2>
19 <div id="qunit-testrunner-toolbar"></div>
20 <h2 id="qunit-userAgent"></h2>
21 <ol id="qunit-tests"></ol>
23 <div id="qunit-fixture">
24 <div data-role="page" id="dummy-page">
25 <div data-role="header" data-position="fixed">
28 <div data-role="contents">
31 <div data-role="page" id="searchbar-unit-test" data-add-back-btn="true">
32 <div data-role="header" data-position="fixed">
34 <input type="search" name="search" id="searchInput" value=""/>
36 <div data-role="content" id="searchbar-content">
71 $( "#searchInput" ).live( "input change", function(){
74 regEx = ".*" + $( "#searchInput" ).val();
76 $( "#searchbar-content p" ).each( function(){
77 if ( $( this ).text().search( new RegExp( regEx ) ) != -1) {