소스 검색

Update for GWT-2.8

tags/gwtquery-project-1.5-beta1
Maxime Mériouma-Caron 8 년 전
부모
커밋
1318f8f90e
1개의 변경된 파일11개의 추가작업 그리고 9개의 파일을 삭제
  1. 11
    9
      gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryJsInteropTestGwt.java

+ 11
- 9
gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryJsInteropTestGwt.java 파일 보기

@@ -19,8 +19,6 @@ import static com.google.gwt.query.client.GQuery.$;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.ScriptInjector;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
import com.google.gwt.dom.client.Element;
import com.google.gwt.junit.DoNotRunWith;
import com.google.gwt.junit.Platform;
@@ -30,6 +28,9 @@ import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;

import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
* Test class for testing jsinterop
*/
@@ -58,25 +59,26 @@ public class GQueryJsInteropTestGwt extends GWTTestCase {
}
}

@JsType(prototype = "Window")
@JsType(name = "Window")
public interface HTMLWindow {
@JsProperty String getName();
@JsProperty
String getName();
@JsProperty void setName(String name);
}

@JsType(prototype = "Window")
@JsType(name = "Window")
public interface HWindow {
@JsProperty HDocument document();
@JsProperty(name = "document") HDocument document();
}

@JsType(prototype = "HTMLDocument")
@JsType(name = "HTMLDocument")
public interface HDocument {
HElement createElement(String tag);
}
@JsType(prototype = "HTMLElement")
@JsType(name = "HTMLElement")
public interface HElement {
@JsProperty void id(String s);
@JsProperty(name = "id") void id(String s);
}
// jsInterop only works in prod mode.

Loading…
취소
저장