Update ui-tests-app

This commit is contained in:
Vasil Chimev
2016-01-15 14:20:06 +02:00
parent 6f66ca7f97
commit c3ee179fd5
5 changed files with 24 additions and 27 deletions

View File

@ -1163,7 +1163,7 @@
</Content> </Content>
<Content Include="apps\ui-tests-app\image-view\red.png" /> <Content Include="apps\ui-tests-app\image-view\red.png" />
<Content Include="apps\ui-tests-app\pages\test2.png" /> <Content Include="apps\ui-tests-app\pages\test2.png" />
<Content Include="apps\ui-tests-app\pages\switchandprogress.xml" /> <Content Include="apps\ui-tests-app\css\views.xml" />
<Content Include="apps\ui-tests-app\text-field\text-field.xml" /> <Content Include="apps\ui-tests-app\text-field\text-field.xml" />
<Content Include="apps\ui-tests-app\font\text-field.xml" /> <Content Include="apps\ui-tests-app\font\text-field.xml" />
<Content Include="apps\ui-tests-app\font\text-view.xml" /> <Content Include="apps\ui-tests-app\font\text-view.xml" />

View File

@ -43,9 +43,9 @@ export function butonTap(args) {
textField.style.textTransform = "none"; textField.style.textTransform = "none";
textView.style.textTransform = "none"; textView.style.textTransform = "none";
lbl.style.textDecoration = "none"; //lbl.style.textDecoration = "none";
btn.style.textDecoration = "none"; //btn.style.textDecoration = "none";
textField.style.textDecoration = "none"; //textField.style.textDecoration = "none";
textView.style.textDecoration = "none"; //textView.style.textDecoration = "none";
} }
} }

View File

@ -32,35 +32,22 @@ export function selectExample() {
} }
} }
examples.set("basics", "bindings/basics");
examples.set("xmlbasics", "bindings/xmlbasics");
examples.set("console", "pages/console");
examples.set("gestures", "pages/gestures");
examples.set("handlers", "pages/handlers");
examples.set("i61", "pages/i61");
examples.set("i73", "pages/i73");
examples.set("i86", "pages/i86");
examples.set("listview_binding", "pages/listview_binding");
examples.set("switch", "pages/switchandprogress"); // TODO: Update this test page.
examples.set("textfield", "text-field/text-field");
// ---
examples.set("actColor", "action-bar/color"); examples.set("actColor", "action-bar/color");
examples.set("actBG", "action-bar/background"); examples.set("actBG", "action-bar/background");
examples.set("actStyle", "action-bar/all"); examples.set("actStyle", "action-bar/all");
examples.set("actIcons", "action-bar/system-icons"); examples.set("actIcons", "action-bar/system-icons");
examples.set("basics", "bindings/basics");
examples.set("xmlbasics", "bindings/xmlbasics");
examples.set("background", "css/background"); examples.set("background", "css/background");
examples.set("radius", "css/radius");
examples.set("styles", "css/styles");
examples.set("formatted", "css/decoration-transform-formattedtext"); examples.set("formatted", "css/decoration-transform-formattedtext");
examples.set("decoration", "css/text-decoration"); examples.set("decoration", "css/text-decoration");
examples.set("transform", "css/text-transform"); examples.set("transform", "css/text-transform");
examples.set("whitespace", "css/white-space"); examples.set("whitespace", "css/white-space");
examples.set("radius", "css/radius");
examples.set("styles", "css/styles");
examples.set("switch", "css/views");
examples.set("dialogs", "dialogs/dialogs"); examples.set("dialogs", "dialogs/dialogs");
@ -71,6 +58,9 @@ examples.set("fontview", "font/text-view");
examples.set("htmlview", "html-view/html-view"); examples.set("htmlview", "html-view/html-view");
examples.set("roundbtn", "image-view/rounded-buttons");
examples.set("roundimg", "image-view/rounded-images");
examples.set("absolute", "layouts/absolute"); examples.set("absolute", "layouts/absolute");
examples.set("dock", "layouts/dock"); examples.set("dock", "layouts/dock");
examples.set("grid", "layouts/grid"); examples.set("grid", "layouts/grid");
@ -88,8 +78,13 @@ examples.set("pwrap", "layouts-percent/wrap");
examples.set("modalview", "modal-view/modal-view"); examples.set("modalview", "modal-view/modal-view");
examples.set("nordic", "nordic/nordic"); examples.set("nordic", "nordic/nordic");
examples.set("roundbtn", "image-view/rounded-buttons"); examples.set("gestures", "pages/gestures");
examples.set("roundimg", "image-view/rounded-images"); examples.set("handlers", "pages/handlers");
//examples.set("listview_binding", "pages/listview_binding");
examples.set("console", "pages/console");
examples.set("i61", "pages/i61");
examples.set("i73", "pages/i73");
examples.set("i86", "pages/i86");
examples.set("segStyle", "segmented-bar/all"); examples.set("segStyle", "segmented-bar/all");
@ -99,5 +94,7 @@ examples.set("tabTabsBG", "tab-view/tabsBackground");
examples.set("tabSelected", "tab-view/selected"); examples.set("tabSelected", "tab-view/selected");
examples.set("tabStyle", "tab-view/all"); examples.set("tabStyle", "tab-view/all");
//examples.set("textfield", "text-field/text-field");
examples.set("webview", "web-view/web-view"); examples.set("webview", "web-view/web-view");
examples.set("webtest", "web-view/web-view-test"); examples.set("webtest", "web-view/web-view-test");

View File

@ -91,7 +91,7 @@ export function createPage() {
var observer4 = swipeLabel.getGestureObservers(gestures.GestureTypes.swipe)[0]; var observer4 = swipeLabel.getGestureObservers(gestures.GestureTypes.swipe)[0];
panLabel.on(gestures.GestureTypes.pan, function (args: gestures.PanGestureEventData) { panLabel.on(gestures.GestureTypes.pan, function (args: gestures.PanGestureEventData) {
panLabel.text = "Pan deltaX:" + Math.round(args.deltaX) + "; deltaY:" + Math.round(args.deltaX) + ";" + ", " + (args.object === panLabel) + getStateAsString(args.state); panLabel.text = "Pan deltaX:" + Math.round(args.deltaX) + "; deltaY:" + Math.round(args.deltaY) + ";" + ", " + (args.object === panLabel) + getStateAsString(args.state);
}); });
var observer5 = panLabel.getGestureObservers(gestures.GestureTypes.pan)[0]; var observer5 = panLabel.getGestureObservers(gestures.GestureTypes.pan)[0];