• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 追求代碼質量: 對 Ajax 應用程序進行單元測試[2]

    發表于:2010-05-04來源:作者:點擊數: 標簽:代碼質量單元AjaxAJAX
    追求代碼 質量 : 對 Ajax 應用程序進行 單元測試 [2] 軟件測試 清單 1. 一個有效的 GWT 應用程序,但是如何測試它? public class DefaultModule implements EntryPoint { public void onModuleLoad() { Button button = new Button("Submit"); TextBox box =

      追求代碼質量: 對 Ajax 應用程序進行單元測試[2]  軟件測試

      清單 1. 一個有效的 GWT 應用程序,但是如何測試它?

      public class DefaultModule implements EntryPoint {

      public void onModuleLoad() {

      Button button = new Button("Submit");

      TextBox box = new TextBox();

      Label output = new Label();

      Label label = new Label("Word: ");

      HorizontalPanel inputPanel = new HorizontalPanel();

      inputPanel.setStyleName("input-panel");

      inputPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);

      inputPanel.add(label);

      inputPanel.add(box);

      button.addClickListener(new ClickListener() {

      public void onclick(Widget sender) {

      String word = box.getText();

      WordServiceAsync instance = WordService.Util.getInstance();

      try {

      instance.getDefinition(word, new AsyncCallback() {

      public void onFailure(Throwable error) {

      Window.alert("Error oclearcase/" target="_blank" >ccurred:" + error.toString());

      }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>