Add nordic test page to ui-tests-app.

https://github.com/NativeScript/NativeScript/issues/756
This commit is contained in:
Vasil Chimev
2015-09-25 18:42:11 +03:00
parent 2ffe258269
commit 40718eba4b
4 changed files with 17 additions and 1 deletions

View File

@ -182,6 +182,9 @@
</Content>
<Content Include="apps\tests\pages\tab-view.xml" />
<Content Include="apps\ui-tests-app\app.css" />
<TypeScriptCompile Include="apps\ui-tests-app\nordic\nordic.ts">
<DependentUpon>nordic.xml</DependentUpon>
</TypeScriptCompile>
<TypeScriptCompile Include="apps\ui-tests-app\pages\handlers.ts" />
<TypeScriptCompile Include="apps\ui-tests-app\pages\htmlview.ts" />
<TypeScriptCompile Include="ui\animation\animation.d.ts" />
@ -978,6 +981,7 @@
<Content Include="apps\ui-tests-app\layouts\wrap.xml" />
<Content Include="apps\ui-tests-app\css\background.xml" />
<Content Include="apps\ui-tests-app\image-view\roundbtn.xml" />
<Content Include="apps\ui-tests-app\nordic\nordic.xml" />
<Content Include="apps\ui-tests-app\pages\handlers.xml" />
<Content Include="apps\ui-tests-app\pages\htmlview.xml" />
<Content Include="apps\ui-tests-app\pages\i86.xml" />

View File

@ -10,7 +10,7 @@ import trace = require("trace");
trace.enable();
trace.setCategories(trace.categories.Test);
var list: string[] = ["pages", "bindings", "css", "dialogs", "layouts", "modal-view", "web-view", "image-view"];
var list: string[] = ["pages", "bindings", "css", "dialogs", "image-view", "layouts", "modal-view", "nordic", "web-view"];
// basePath is auto-changed when building multiple apps
var basePath = "";

View File

@ -0,0 +1,6 @@
var vmModule = require("./main-view-model");
function pageLoaded(args) {
var page = args.object;
page.getViewById("label").text = "æøå";
}
exports.pageLoaded = pageLoaded;

View File

@ -0,0 +1,6 @@
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
<StackLayout>
<Label id="label" />
<Button text="æøå" />
</StackLayout>
</Page>