mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Add nordic test page to ui-tests-app.
https://github.com/NativeScript/NativeScript/issues/756
This commit is contained in:
@ -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" />
|
||||
|
@ -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 = "";
|
||||
|
6
apps/ui-tests-app/nordic/nordic.ts
Normal file
6
apps/ui-tests-app/nordic/nordic.ts
Normal 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;
|
6
apps/ui-tests-app/nordic/nordic.xml
Normal file
6
apps/ui-tests-app/nordic/nordic.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<StackLayout>
|
||||
<Label id="label" />
|
||||
<Button text="æøå" />
|
||||
</StackLayout>
|
||||
</Page>
|
Reference in New Issue
Block a user