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

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

?? automatedtesting.aspx

?? 一個包含AJAX所有功能的示例網站以及源代碼,非常好學習!
?? ASPX
?? 第 1 頁 / 共 3 頁
字號:
<%@ Page
    Language="C#"
    MasterPageFile="~/DefaultMaster.master"
    AutoEventWireup="true"
    Title="Automated Testing" %>
<asp:Content ContentPlaceHolderID="SampleContent" Runat="Server">
    <div class="walkthrough">
        <div class="heading">Automated Testing</div>
        <p>
            JavaScript presents several challenges when testing user interface components written using ASP.NET AJAX.
            With asynchronous operations like web service calls or animation, you have to start the operation
            and wait for it to complete without blocking before you can verify the result.  Postbacks are just
            as difficult because you have to perform an action that causes a postback and then have the test
            resume processing where it left off when the page loads again.  We have written a JavaScript testing
            framework, in the <span class="codeReference">ToolkitTests</span> web project, to eliminate these
            problems when writing tests for your components.
        </p>
        <p></p>
        <p>
            The following walkthrough describes the steps you need to take to get started using the AJAX Control
            Toolkit Automated Test Harness.
        </p>
        <p></p>
        <div class="subheading">Creating a Component Unit Test</div>
        <p>
            The AJAX Control Toolkit Automated Test Harness allows you to easily write tests for user interface
            components written in JavaScript.  The test harness is the web application that actually runs all of
            the selected test suites and displays their results.  A test suite is an <span class="codeReference">*.aspx</span>
            page that contains instances of your component as well as the definition of several test cases.  A test
            case is an individual unit test consisting of a series of test steps to evaluate a particular area of
            functionality.  A test step is an action (possibly performed asynchronously or after a postback) that
            operates on your component.
        </p>
        <p></p>
        <p>
            There are four basic steps to creating a suite:</p>
            <ol>
                <li>Create an ASPX page with the UI that you'd like to test.</li><li>Declare a top-level JavaScript variable called <span class="codeReference">typeDependencies</span>
                    that lists the types that need to be loaded for your type to run.</li><li>Declare a JavaScript function called <span class="codeReference">registerTests</span> that defines
                    the tests and the steps of those tests.</li><li>Inside of <span class="codeReference">registerTests</span>, declare a set of tests and test steps.</li></ol>
        <p>
            As you'll see below, the Test Harness takes a set of steps, queues them up, then executes them in order, either
            synchronously or asynchronously, by waiting for their completion function to return true.
        </p>
        <p></p>
        <p>
            To create a new test suite, add a new Web Form to the <span class="codeReference">ToolkitTests</span> project and
            select the <span class="codeReference">Default.master</span> master page.  Then add instances of your component to
            the Web Form that you will use in the tests.  Next, you need to create a <span class="codeReference">&lt;script&gt;</span>
            block that contains definitions of your test cases and test harness entry points.  If you were writing a test suite
            for <span class="codeReference">CascadingDropDown</span>, it would look something like this:
        </p>
        <code>
            
                <span style=" background: yellow; font-family: 'Lucida Console'; 
                    ">&lt;%</span><span style=" color: blue; font-family: 'Lucida Console';
                        ">@</span><span style=" font-family: 'Lucida Console';
                            "> <span style="color: maroon">Page</span></span>
                
                <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">Language</span><span
                        style="color: blue">="C#"</span></span>
                <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">CodeFile</span><span
                        style="color: blue">="CascadingDropDown.aspx.cs"</span></span>
                <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">Inherits</span><span
                        style="color: blue">="Automated_CascadingDropDown"</span></span>
                <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">Title</span><span
                        style="color: blue">="CascadingDropDown Tests"</span></span>
                <br />        
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">MasterPageFile</span><span
                        style="color: blue">="~/Default.master"</span></span>
                <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">EnableEventValidation</span><span
                        style="color: blue">="false"</span> <span style="background: yellow; ">
                            %&gt;</span></span>
                <br />  
                <span style=" color: blue; font-family: 'Lucida Console'; ">
                    &lt;</span><span style=" color: maroon; font-family: 'Lucida Console';
                        ">asp</span><span style=" color: blue; font-family: 'Lucida Console';
                            ">:</span><span style=" color: maroon; font-family: 'Lucida Console';
                                ">Content</span><span style=" font-family: 'Lucida Console';
                                    "> <span style="color: red">ID</span><span style="color: blue">="Content"</span></span><
                  <br />
                 <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue"></span></span><span style=" font-family: 'Lucida Console';
                        "><span style="color: red">ContentPlaceHolderID</span><span style="color: blue">="SampleContent"</span></span>
                  <br />
                 <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue"></span><span style="color: red">Runat</span><span style="color: blue">="Server"&gt;</span></span>
                  <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style=""></span><span style="color: blue"><span style="color: #000">
                         </span>&lt;</span><span style="color: maroon">asp</span><span style="color: blue">:</span><span
                            style="color: maroon">DropDownList</span> <span style="color: red">ID</span><span
                                style="color: blue">="DropDownList1"</span></span>
                  <br />
                  <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue"></span><span style="color: red">runat</span><span style="color: blue">="server"</span>
                    <span style="color: red">Width</span><span style="color: blue">="170"</span><span
                        style="color: #0000ff; ">&gt;</span></span>
                  <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style=""> </span><span style="color: blue">&lt;</span><span
                        style="color: maroon">ajaxToolkit</span><span style="color: blue">:</span><span
                            style="color: maroon">CascadingDropDown</span> <span style="color: red">ID</span><span
                                style="color: blue">="CascadingDropDown1"</span></span>
                  <br />
                  <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue"></span><span style="color: red">runat</span><span style="color: blue">="server"</span></span>
                  <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style="color: red">  TargetControlID</span><span style="color: blue">="DropDownList1"</span>
                    
                </span>
                  <br />
            
                <span style=" font-family: 'Lucida Console'; "><span
                    style="">  </span><span style="color: red">Category</span><span
                        style="color: blue">="Make"</span></span>
                  <br />
                  <span style=" font-family: 'Lucida Console';
                    "><span style="color: blue"></span><span style="color: red">PromptText</span><span
                        style="color: blue">="Please select a make"</span><span style=""> </span></span>
                  <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style=""></span></span><span style=" font-family: 'Lucida Console';
                        "><span style="">  </span><span
                            style="color: red">ServicePath</span><span style="color: blue">="CarsService.asmx"</span></span>
                  <br />
                  <span style=" font-family: 'Lucida Console';
                    "><span style="color: blue"></span><span style="color: red">ServiceMethod</span><span
                        style="color: blue">="GetDropDownContents"</span> <span style="color: blue">/&gt;</span><span
                            style="">    </span><span style="color: blue">
                            </span></span>
                  <br />
                 <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue">&lt;</span><span style="color: maroon">asp</span><span
                        style="color: blue">:</span><span style="color: maroon">Label</span> <span style="color: red">
                            ID</span><span style="color: blue">="Label1"</span> <span style="color: red">runat</span><span
                                style="color: blue">="server"</span></span>
                  <br />
                 <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue"></span><span style="color: red">Text</span><span style="color: blue">="Label"&gt;&lt;/</span><span
                        style="color: maroon">asp</span><span style="color: blue">:</span><span style="color: maroon">Label</span><span
                            style="color: blue">&gt;</span></span>
                  <br />
                 <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue">&lt;</span><span style="color: maroon">asp</span><span
                        style="color: blue">:</span><span style="color: maroon">Button</span> <span style="color: red">
                            ID</span><span style="color: blue">="Button1"</span> <span style="color: red">runat</span><span
                                style="color: blue">="server"</span></span>
                  <br />
                  <span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue"></span><span style="color: red">Text</span><span style="color: blue">="Button"</span>
                    <span style="color: red">OnClick</span><span style="color: blue">="Button1_Click"</span>
                    <span style="color: blue">/&gt;</span></span>
                  <br />
                <span style=" color: blue; font-family: 'Lucida Console'; ">
                    
                </span><span style=" font-family: 'Lucida Console'; ">
                    <span style="color: blue">&lt;</span><span style="color: maroon">script</span> <span
                        style="color: red">type</span><span style="color: blue">="text/javascript"&gt;</span></span>
                  <br />
                <span style=" color: blue; font-family: 'Lucida Console'; ">
                    <span style=""></span></span>
                  <br />
                <span style=" color: blue; font-family: 'Lucida Console'; ">
                    <span style="">  </span></span><span style="
                        color: green; font-family: 'Lucida Console';  ">
                        // Define the test cases</span>
          <br />
                <span style=" color: green; font-family: 'Lucida Console'; 
                    ">
                    
                </span>
                  <br />
                <span style=" font-family: 'Lucida Console'; "><span
                    style=""></span><span style="color: blue">&lt;/</span><span
                        style="color: maroon">script</span><span style="color: blue">&gt;</span></span>
                  <br />
                <span style=" color: blue; font-family: 'Lucida Console'; ">
                    &lt;/</span><span style=" color: maroon; font-family: 'Lucida Console';
                        ">asp</span><span style=" color: blue; font-family: 'Lucida Console';
                            ">:</span><span style=" color: maroon; font-family: 'Lucida Console';
                                ">Content</span><span style=" color: blue; font-family: 'Lucida Console';
                                    ">&gt;</span>

        </code>
        <p>
            Now, in the JavaScript block, we declare an array of strings called <span class="codeReference">typeDependencies</span> that
            contains the fully qualified JavaScript names of the components used in your test suite.  The test harness will wait for all
            of these objects to have been defined before running any of your tests.  This is critical; without it the tests will
            intermittently fail based on how long it takes to load the behaviors.
        </p>
        <p></p>
        <p>
            For the <span class="codeReference">CascadingDropDown</span> test suite, we have: 
        </p>
        <code>
            
                <span style=" font-family: 'Lucida Console'; "><span
                    style=""></span><span style="color: green">// Script objects that should
                        be loaded before we run</span></span>
                        <br />
                <span style=" font-family: 'Lucida Console'; "><span

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品成人一区二区艾草| 91在线观看一区二区| 日韩色在线观看| 麻豆精品一区二区综合av| 欧美一区二区大片| 国产九九视频一区二区三区| 日韩一区在线播放| 99v久久综合狠狠综合久久| 亚洲伊人色欲综合网| 欧美三区免费完整视频在线观看| 亚洲va国产天堂va久久en| 91 com成人网| 国产乱码字幕精品高清av| 国产精品蜜臀在线观看| 91福利精品视频| 美女视频黄久久| 久久久久久久国产精品影院| 成人h动漫精品一区二区| 亚洲自拍偷拍图区| 日韩精品中文字幕一区二区三区| 国产老肥熟一区二区三区| 亚洲视频一区在线观看| 欧美一区二区视频观看视频| 国产高清不卡一区| 亚洲一线二线三线久久久| 欧美tickling挠脚心丨vk| jlzzjlzz亚洲日本少妇| 日韩高清不卡在线| 国产欧美精品国产国产专区| 欧美亚洲国产一区在线观看网站| 久久精品国产亚洲高清剧情介绍| 国产精品青草久久| 3d成人动漫网站| 成人免费av资源| 日本视频在线一区| 最新中文字幕一区二区三区| 欧美高清hd18日本| 99久久99久久精品国产片果冻| 国产高清成人在线| 日韩av一级电影| 亚洲人成精品久久久久久| 精品国产一区二区三区四区四| 色视频欧美一区二区三区| 精品一区二区国语对白| 夜色激情一区二区| 中文欧美字幕免费| 日韩美女一区二区三区四区| 91视视频在线直接观看在线看网页在线看 | 欧美大度的电影原声| 成人午夜免费视频| 六月丁香婷婷久久| 亚洲午夜一二三区视频| 国产精品乱码人人做人人爱| 国产日韩欧美不卡| 精品国产制服丝袜高跟| 在线综合视频播放| 欧美调教femdomvk| 一本大道久久a久久精二百| 国产精品123| 国内外精品视频| 捆绑调教一区二区三区| 亚洲成人www| 亚洲综合自拍偷拍| 一区二区三区 在线观看视频| 久久久99精品免费观看| 日韩精品专区在线影院观看| 欧美无人高清视频在线观看| 一本到高清视频免费精品| 懂色一区二区三区免费观看| 国产原创一区二区三区| 久久99精品久久久久婷婷| 日韩精品一卡二卡三卡四卡无卡| 亚洲综合色婷婷| 中文字幕在线一区免费| 国产欧美1区2区3区| 精品久久99ma| 久久综合色鬼综合色| 精品久久一区二区三区| 精品国产伦一区二区三区观看方式| 在线综合亚洲欧美在线视频| 欧美精品aⅴ在线视频| 欧美性欧美巨大黑白大战| 91福利精品第一导航| 欧美日韩中字一区| 欧美精品第1页| 欧美成人伊人久久综合网| 欧美成人乱码一区二区三区| 精品成人一区二区三区四区| 久久久久国色av免费看影院| 国产日韩高清在线| 亚洲图片你懂的| 亚洲尤物在线视频观看| 午夜国产精品一区| 精品影视av免费| 国产精品综合在线视频| 99re成人在线| 欧美三级电影在线看| 欧美福利一区二区| 久久久青草青青国产亚洲免观| 中文字幕不卡在线观看| 亚洲欧美电影一区二区| 奇米影视在线99精品| 国产一区二区美女诱惑| 91麻豆自制传媒国产之光| 欧美三级视频在线观看| 精品国产1区二区| 亚洲视频在线观看三级| 日韩成人av影视| 成人国产一区二区三区精品| 在线视频你懂得一区二区三区| 欧美一区二区三区在线观看视频| 精品福利一二区| 亚洲精品国产视频| 青青草一区二区三区| 成人av在线观| 欧美一激情一区二区三区| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲综合激情网| 国产高清一区日本| 欧美日韩成人综合| 久久免费电影网| 五月婷婷久久丁香| 成人福利视频在线| 日韩三级免费观看| 亚洲女子a中天字幕| 国产自产2019最新不卡| 欧美在线三级电影| 久久夜色精品国产欧美乱极品| 亚洲乱码精品一二三四区日韩在线 | 国产99久久久国产精品潘金网站| 欧美一a一片一级一片| 久久夜色精品国产欧美乱极品| 一区二区免费看| 成人精品免费网站| 26uuu亚洲| 喷水一区二区三区| 在线中文字幕一区| 国产女人18毛片水真多成人如厕| 日韩精品一级二级| 欧美日韩一区 二区 三区 久久精品| 欧美国产精品一区二区三区| 蜜桃精品视频在线观看| 91成人在线免费观看| 国产精品美日韩| 国产一区二区0| 欧美一级午夜免费电影| 亚洲午夜成aⅴ人片| aaa国产一区| 国产精品视频线看| 国产精品亚洲一区二区三区妖精| 欧美一级二级三级蜜桃| 五月激情综合色| 欧美视频一区二区在线观看| 亚洲同性gay激情无套| 成人一道本在线| 国产蜜臀av在线一区二区三区| 久久精品国产99国产| 欧美一级一区二区| 日本亚洲视频在线| 日韩欧美在线网站| 免费成人在线观看| 欧美哺乳videos| 精品一区二区三区欧美| 精品美女被调教视频大全网站| 免费在线观看日韩欧美| 91精品免费观看| 全国精品久久少妇| 精品日本一线二线三线不卡| 麻豆成人久久精品二区三区红| 欧美一区永久视频免费观看| 午夜免费欧美电影| 欧美一卡2卡三卡4卡5免费| 日韩一区精品字幕| 精品欧美乱码久久久久久1区2区| 青青草原综合久久大伊人精品优势 | 成人18视频日本| 亚洲男女毛片无遮挡| 在线观看国产一区二区| 舔着乳尖日韩一区| 日韩视频在线你懂得| 国产精品亚洲午夜一区二区三区| 欧美国产综合色视频| 一本一本大道香蕉久在线精品 | 国产精品网站在线播放| 成人国产亚洲欧美成人综合网| 亚洲欧洲美洲综合色网| 91精彩视频在线观看| 五月婷婷另类国产| 26uuu亚洲婷婷狠狠天堂| 成人免费视频视频在线观看免费| 中文字幕一区二区三区在线不卡| 色婷婷香蕉在线一区二区| 天天影视色香欲综合网老头| 精品久久一区二区| 91在线视频播放地址| 午夜不卡在线视频| 欧美国产禁国产网站cc| 日本久久一区二区三区| 久久精品国产99久久6| 国产精品久久久久久久久动漫|