亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ajax.test.php

?? Cake Framwork , Excellent
?? PHP
?? 第 1 頁 / 共 4 頁
字號:
/** * testAutoComplete method *  * @access public * @return void */	function testAutoComplete() {		$result = $this->Ajax->autoComplete('PostAjaxTest.title' , '/posts', array('minChars' => 2));		$this->assertPattern('/^<input[^<>]+name="data\[PostAjaxTest\]\[title\]"[^<>]+autocomplete="off"[^<>]+\/>/', $result);		$this->assertPattern('/<div[^<>]+id="PostAjaxTestTitle_autoComplete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<div[^<>]+class="auto_complete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<\/div>\s+<script type="text\/javascript">\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\',')) . '/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\', {minChars:2});')) . '/', $result);		$this->assertPattern('/<\/script>$/', $result);		$result = $this->Ajax->autoComplete('PostAjaxTest.title' , '/posts', array('paramName' => 'parameter'));		$this->assertPattern('/^<input[^<>]+name="data\[PostAjaxTest\]\[title\]"[^<>]+autocomplete="off"[^<>]+\/>/', $result);		$this->assertPattern('/<div[^<>]+id="PostAjaxTestTitle_autoComplete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<div[^<>]+class="auto_complete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<\/div>\s+<script type="text\/javascript">\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\',')) . '/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\', {paramName:\'parameter\'});')) . '/', $result);		$this->assertPattern('/<\/script>$/', $result);		$result = $this->Ajax->autoComplete('PostAjaxTest.title' , '/posts', array('paramName' => 'parameter', 'updateElement' => 'elementUpdated', 'afterUpdateElement' => 'function (input, element) { alert("updated"); }'));		$this->assertPattern('/^<input[^<>]+name="data\[PostAjaxTest\]\[title\]"[^<>]+autocomplete="off"[^<>]+\/>/', $result);		$this->assertPattern('/<div[^<>]+id="PostAjaxTestTitle_autoComplete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<div[^<>]+class="auto_complete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<\/div>\s+<script type="text\/javascript">\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\',')) . '/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\', {paramName:\'parameter\', updateElement:elementUpdated, afterUpdateElement:function (input, element) { alert("updated"); }});')) . '/', $result);		$this->assertPattern('/<\/script>$/', $result);		$result = $this->Ajax->autoComplete('PostAjaxTest.title' , '/posts', array('callback' => 'function (input, queryString) { alert("requesting"); }'));		$this->assertPattern('/^<input[^<>]+name="data\[PostAjaxTest\]\[title\]"[^<>]+autocomplete="off"[^<>]+\/>/', $result);		$this->assertPattern('/<div[^<>]+id="PostAjaxTestTitle_autoComplete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<div[^<>]+class="auto_complete"[^<>]*><\/div>/', $result);		$this->assertPattern('/<\/div>\s+<script type="text\/javascript">\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\',')) . '/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\', {callback:function (input, queryString) { alert("requesting"); }});')) . '/', $result);		$this->assertPattern('/<\/script>$/', $result);	}/** * testAsynchronous method *  * @access public * @return void */	function testAsynchronous() {		$result = $this->Ajax->link('Test Link', '/', array('id' => 'link1', 'update' => 'content', 'type' => 'synchronous'));		$this->assertPattern('/^<a\s+[^<>]+>Test Link<\/a><script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote('Event.observe(\'link1\', \'click\', function(event) { new Ajax.Updater(\'content\',\'/\', {asynchronous:false, evalScripts:true, requestHeaders:[\'X-Update\', \'content\']}) }, false);')) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$this->assertPattern('/^<a\s+[^<>]*href="\/"[^<>]*>/', $result);		$this->assertPattern('/^<a\s+[^<>]*id="link1"[^<>]*>/', $result);		$this->assertPattern('/^<a\s+[^<>]*onclick="\s*' . str_replace('/', '\\/', preg_quote('event.returnValue = false; return false;')) . '\s*"[^<>]*>/', $result);	}/** * testDraggable method *  * @access public * @return void */	function testDraggable() {		$result = $this->Ajax->drag('id', array('handle' => 'other_id'));		$expected = 'new Draggable(\'id\', {handle:\'other_id\'});';		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote($expected)) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);	}/** * testDroppable method *  * @access public * @return void */	function testDroppable() {		$result = $this->Ajax->drop('droppable', array('accept' => 'crap'));		$this->assertPattern('/^<script[^<>]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result);		$this->assertNoPattern('/<script[^<>]+[^type]=[^<>]*>/', $result);		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*Droppables.add\(\'droppable\', {accept:\'crap\'}\);\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$result = $this->Ajax->dropRemote('droppable', array('accept' => 'crap'), array('url' => '/posts'));		$this->assertPattern('/^<script[^<>]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result);		$this->assertNoPattern('/<script[^<>]+[^type]=[^<>]*>/', $result);		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*Droppables.add\(\'droppable\', {accept:\'crap\', onDrop:function\(element, droppable, event\) {.+}\);\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Request(\'/posts\', {asynchronous:true, evalScripts:true})')) . '/', $result);		$result = $this->Ajax->dropRemote('droppable', array('accept' => array('crap1', 'crap2')), array('url' => '/posts'));		$this->assertPattern('/^<script[^<>]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result);		$this->assertNoPattern('/<script[^<>]+[^type]=[^<>]*>/', $result);		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*Droppables.add\(\'droppable\', {accept:\["crap1","crap2"\], onDrop:function\(element, droppable, event\) {.+}\);\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Request(\'/posts\', {asynchronous:true, evalScripts:true})')) . '/', $result);		$result = $this->Ajax->dropRemote('droppable', array('accept' => 'crap'), array('url' => '/posts', 'with' => '{drag_id:element.id,drop_id:dropon.id,event:event.whatever_you_want}'));		$this->assertPattern('/^<script[^<>]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result);		$this->assertNoPattern('/<script[^<>]+[^type]=[^<>]*>/', $result);		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*Droppables.add\(\'droppable\', {accept:\'crap\', onDrop:function\(element, droppable, event\) {.+}\);\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Request(\'/posts\', {asynchronous:true, evalScripts:true, parameters:{drag_id:element.id,drop_id:dropon.id,event:event.whatever_you_want}})')) . '/', $result);	}/** * testForm method *  * @access public * @return void */	function testForm() {		$result = $this->Ajax->form('showForm', 'post', array('model' => 'Form', 'url' => array('action' => 'showForm', 'controller' => 'forms'), 'update' => 'form_box'));		$this->assertNoPattern('/model=/', $result);		$result = $this->Ajax->form('showForm', 'post', array('name'=> 'SomeFormName', 'id' => 'MyFormID', 'url' => array('action' => 'showForm', 'controller' => 'forms'), 'update' => 'form_box'));		$this->assertPattern('/id="MyFormID"/', $result);		$this->assertPattern('/name="SomeFormName"/', $result);	}/** * testSortable method *  * @access public * @return void */	function testSortable() {		$result = $this->Ajax->sortable('ull', array('constraint' => false, 'ghosting' => true));		$expected = 'Sortable.create(\'ull\', {constraint:false, ghosting:true});';		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote($expected)) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$result = $this->Ajax->sortable('ull', array('constraint' => 'false', 'ghosting' => 'true'));		$expected = 'Sortable.create(\'ull\', {constraint:false, ghosting:true});';		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote($expected)) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$result = $this->Ajax->sortable('ull', array('constraint'=>'false', 'ghosting'=>'true', 'update' => 'myId'));		$expected = 'Sortable.create(\'ull\', {constraint:false, ghosting:true, update:\'myId\'});';		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote($expected)) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$result = $this->Ajax->sortable('faqs', array('url'=>'http://www.cakephp.org',			'update' => 'faqs',			'tag' => 'tbody',			'handle' => 'grip',			'before' => 'Element.hide(\'message\')',			'complete' => 'Element.show(\'message\');'));		$expected = 'Sortable.create(\'faqs\', {update:\'faqs\', tag:\'tbody\', handle:\'grip\', onUpdate:function(sortable) {Element.hide(\'message\'); new Ajax.Updater(\'faqs\',\'http://www.cakephp.org\', {asynchronous:true, evalScripts:true, onComplete:function(request, json) {Element.show(\'message\');}, parameters:Sortable.serialize(\'faqs\'), requestHeaders:[\'X-Update\', \'faqs\']})}});';		$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote($expected)) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$result = $this->Ajax->sortable('div', array('overlap' => 'foo'));		$expected = "Sortable.create('div', {overlap:'foo'});";		$this->assertPattern('/' . str_replace('/', '\\/', preg_quote($expected)) . '/', $result);		$result = $this->Ajax->sortable('div', array('block' => false));		$expected = "Sortable.create('div', {});";		$this->assertEqual($result, $expected);		$result = $this->Ajax->sortable('div', array('block' => false, 'scroll' => 'someID'));		$expected = "Sortable.create('div', {scroll:'someID'});";		$this->assertEqual($result, $expected);		$result = $this->Ajax->sortable('div', array('block' => false, 'scroll' => 'window'));		$expected = "Sortable.create('div', {scroll:window});";		$this->assertEqual($result, $expected);		$result = $this->Ajax->sortable('div', array('block' => false, 'scroll' => '$("someElement")'));		$expected = "Sortable.create('div', {scroll:$(\"someElement\")});";		$this->assertEqual($result, $expected);	}/** * testSubmitWithIndicator method *  * @access public * @return void */	function testSubmitWithIndicator() {		$result = $this->Ajax->submit('Add', array('div' => false, 'url' => "http://www.cakephp.org", 'indicator' => 'loading', 'loading' => "doSomething()", 'complete' => 'doSomethingElse() '));		$this->assertPattern('/onLoading:function\(request\) {doSomething\(\);\s+Element.show\(\'loading\'\);}/', $result);		$this->assertPattern('/onComplete:function\(request, json\) {doSomethingElse\(\) ;\s+Element.hide\(\'loading\'\);}/', $result);	}/** * testLink method *  * @access public * @return void */	function testLink() {		$result = $this->Ajax->link('Ajax Link', 'http://www.cakephp.org/downloads');		$this->assertPattern('/^<a[^<>]+>Ajax Link<\/a><script [^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*[^<>]+\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);		$this->assertPattern('/^<a[^<>]+href="http:\/\/www.cakephp.org\/downloads"[^<>]*>/', $result);		$this->assertPattern('/^<a[^<>]+id="link\d+"[^<>]*>/', $result);		$this->assertPattern('/^<a[^<>]+onclick="\s*event.returnValue = false;\s*return false;"[^<>]*>/', $result);		$this->assertPattern('/<script[^<>]+type="text\/javascript"[^<>]*>/', $result);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品欧美乱码久久久久久1区2区| 中文字幕在线观看一区| 国产亚洲欧美一区在线观看| 成人欧美一区二区三区黑人麻豆 | 亚洲第一电影网| 久久99精品国产.久久久久| a美女胸又www黄视频久久| 欧美日本一区二区| 国产精品福利一区二区| 激情成人综合网| 51精品视频一区二区三区| 亚洲女人小视频在线观看| 国产成人欧美日韩在线电影| 91精品国产品国语在线不卡| 亚洲男女一区二区三区| 国产成+人+日韩+欧美+亚洲| 欧美成人精品3d动漫h| 天堂一区二区在线| 欧美日韩在线综合| 尤物在线观看一区| 91网站视频在线观看| 国产精品免费视频一区| 国产乱码精品一区二区三区av| 91精品国产麻豆国产自产在线| 亚洲亚洲精品在线观看| 色综合色综合色综合色综合色综合 | 欧美性大战久久| 亚洲蜜桃精久久久久久久| 成人免费观看av| 国产精品久久久久久久午夜片 | 欧美在线色视频| 亚洲一二三区不卡| 欧美日韩一区高清| 亚洲高清三级视频| 欧美日本一道本| 久久99精品一区二区三区三区| 日韩精品在线看片z| 久久精品国产亚洲一区二区三区| 欧美一三区三区四区免费在线看| 久久精品99国产精品日本| 欧美成人免费网站| 成人深夜在线观看| 中文字幕亚洲精品在线观看| 91同城在线观看| 亚洲综合色丁香婷婷六月图片| 欧美日韩在线播放三区四区| 日日摸夜夜添夜夜添精品视频| 在线电影国产精品| 国模娜娜一区二区三区| 国产日韩欧美综合一区| 99视频热这里只有精品免费| 一片黄亚洲嫩模| 日韩一区二区不卡| 国产精品综合久久| 亚洲欧美经典视频| 制服.丝袜.亚洲.另类.中文| 久久精品国产成人一区二区三区| 精品999久久久| 成人网男人的天堂| 亚洲18色成人| 国产欧美日韩另类视频免费观看| 99久久精品国产导航| 亚洲成人1区2区| 国产亚洲欧美日韩日本| 在线观看国产日韩| 狠狠色2019综合网| 一区二区三区在线看| 欧美tk—视频vk| 91蝌蚪porny成人天涯| 蜜桃久久久久久| 18涩涩午夜精品.www| 日韩三级视频在线观看| av一区二区久久| 麻豆精品在线观看| 夜色激情一区二区| 久久久高清一区二区三区| 欧美体内she精视频| 国产成人午夜片在线观看高清观看| 一区二区三区四区av| 久久综合久久99| 欧美三级日韩在线| av电影在线观看一区| 蜜桃一区二区三区四区| 亚洲老妇xxxxxx| 国产日韩欧美不卡在线| 欧美一级夜夜爽| 欧美午夜在线一二页| 成人福利视频在线| 激情小说欧美图片| 日韩精品高清不卡| 国产一本一道久久香蕉| 亚洲一二三四区| 国产精品福利电影一区二区三区四区| 欧美一区永久视频免费观看| 欧美色网一区二区| 色婷婷久久久综合中文字幕| 成人在线综合网| 国产精品资源在线观看| 另类调教123区 | 制服视频三区第一页精品| 91热门视频在线观看| 国产a级毛片一区| 国产伦精品一区二区三区视频青涩| 日韩电影在线观看网站| 一区二区激情视频| 亚洲另类中文字| 综合av第一页| 亚洲精品视频在线看| 亚洲视频一二三| 亚洲精品国产精品乱码不99| 中文字幕一区二区不卡 | 日韩欧美亚洲另类制服综合在线| 欧美图片一区二区三区| 欧美视频一区二区三区四区| 在线观看免费亚洲| 欧美视频一区二区在线观看| 欧美日韩在线观看一区二区 | 中文字幕一区二区5566日韩| 国产精品免费av| 中文字幕一区二区不卡| 亚洲男人都懂的| 亚洲国产精品久久久男人的天堂| 亚洲一区二区三区四区在线观看 | 欧美久久久一区| 3d成人h动漫网站入口| 在线电影一区二区三区| 亚洲国产精品嫩草影院| 精品国产3级a| 久久久久国产精品免费免费搜索| 久久久久久久久久看片| 中文字幕av一区二区三区高| 国产精品国产三级国产a| 亚洲精品伦理在线| 亚洲.国产.中文慕字在线| 免费成人结看片| 国产美女精品在线| 91在线高清观看| 7777精品伊人久久久大香线蕉超级流畅 | 色婷婷狠狠综合| 夜夜嗨av一区二区三区| 国产精品久久福利| 亚洲精品国产视频| 午夜视黄欧洲亚洲| 精品无人码麻豆乱码1区2区| 日韩精品成人一区二区三区| 丝袜诱惑制服诱惑色一区在线观看| 夜夜嗨av一区二区三区四季av| 亚洲一区二区三区小说| 久久精品夜夜夜夜久久| 日韩福利视频导航| 国产麻豆一精品一av一免费| 国产成人免费在线观看不卡| 91福利国产精品| 精品日韩一区二区三区| 一区在线观看视频| 日韩专区一卡二卡| 国产激情一区二区三区四区| av成人免费在线| 日韩免费高清视频| 亚洲久草在线视频| 国内精品国产三级国产a久久| 91网站视频在线观看| 精品不卡在线视频| 亚洲国产成人高清精品| 国产高清精品网站| 欧美日韩一区视频| 亚洲欧美影音先锋| 精品在线一区二区| 欧美日韩一区在线| 亚洲男人的天堂在线观看| 国产河南妇女毛片精品久久久| 欧美日本国产一区| 亚洲美女少妇撒尿| 风间由美一区二区三区在线观看| 欧美一区二区在线观看| 亚洲欧美激情一区二区| 丁香婷婷综合色啪| 精品国产一区二区三区久久久蜜月 | 国产成人啪免费观看软件| 欧美一区二区三区播放老司机| 亚洲精品高清在线| 成人福利视频在线看| 久久久综合视频| 蜜桃av一区二区| 7777精品伊人久久久大香线蕉的 | 亚洲欧洲成人自拍| 国产精品影音先锋| 精品久久久久久久久久久久包黑料 | 麻豆成人免费电影| 91精品国产福利| 午夜精品久久久久| 欧美日韩国产一级二级| 亚洲精品欧美激情| 99r精品视频| 中文字幕色av一区二区三区| 国产成人免费9x9x人网站视频| 精品久久国产老人久久综合| 老司机免费视频一区二区三区| 欧美成人性战久久| 精品无人码麻豆乱码1区2区|