仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
31
lib/termsharp/xwt/Testing/WpfTestRunner/Program.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Xwt;
|
||||
|
||||
namespace WpfTestRunner
|
||||
{
|
||||
class Program
|
||||
{
|
||||
[STAThread]
|
||||
static int Main (string[] args)
|
||||
{
|
||||
var list = new List<string> (args);
|
||||
list.Add ("-domain=None");
|
||||
list.Add ("-noshadow");
|
||||
list.Add ("-nothread");
|
||||
if (!list.Contains (typeof (Program).Assembly.Location))
|
||||
list.Add (typeof (Program).Assembly.Location);
|
||||
|
||||
bool skipImageVerification = list.Remove ("-no-image-verify");
|
||||
|
||||
var res = NUnit.ConsoleRunner.Runner.Main (list.ToArray ());
|
||||
|
||||
if (!skipImageVerification)
|
||||
ReferenceImageManager.ShowImageVerifier ();
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle ("WpfTestRunner")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("")]
|
||||
[assembly: AssemblyProduct ("WpfTestRunner")]
|
||||
[assembly: AssemblyCopyright ("Copyright © 2013")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible (false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid ("9bda4397-320d-4c8f-929d-81172bc889fb")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion ("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion ("1.0.0.0")]
|
||||
BIN
lib/termsharp/xwt/Testing/WpfTestRunner/ReferenceImages/Arc.png
Normal file
|
After Width: | Height: | Size: 597 B |
|
After Width: | Height: | Size: 861 B |
|
After Width: | Height: | Size: 679 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 858 B |
|
After Width: | Height: | Size: 987 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 783 B |
|
After Width: | Height: | Size: 621 B |
|
After Width: | Height: | Size: 591 B |
|
After Width: | Height: | Size: 860 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 925 B |
|
After Width: | Height: | Size: 800 B |
|
After Width: | Height: | Size: 573 B |
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 513 B |
|
After Width: | Height: | Size: 541 B |
|
After Width: | Height: | Size: 795 B |
|
After Width: | Height: | Size: 513 B |
|
After Width: | Height: | Size: 340 B |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 948 B |
|
After Width: | Height: | Size: 614 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1016 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 948 B |
|
After Width: | Height: | Size: 693 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 553 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 948 B |
|
After Width: | Height: | Size: 578 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 606 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 745 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 948 B |
|
After Width: | Height: | Size: 578 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 553 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 728 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 311 B |
BIN
lib/termsharp/xwt/Testing/WpfTestRunner/ReferenceImages/Text.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
48
lib/termsharp/xwt/Testing/WpfTestRunner/WpfInit.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// WpfInit.cs
|
||||
//
|
||||
// Author:
|
||||
// Vsevolod Kukol <sevo@sevo.org>
|
||||
//
|
||||
// Copyright (c) 2015 Vsevolod Kukol
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
using NUnit.Framework;
|
||||
|
||||
[assembly:RequiresSTA]
|
||||
|
||||
namespace Xwt
|
||||
{
|
||||
[SetUpFixture]
|
||||
public class WpfInit
|
||||
{
|
||||
[SetUp]
|
||||
public void Init ()
|
||||
{
|
||||
Application.Initialize (Xwt.ToolkitType.Wpf);
|
||||
ReferenceImageManager.Init ("WpfTestRunner");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void Exit ()
|
||||
{
|
||||
Application.Dispose ();
|
||||
}
|
||||
}
|
||||
}
|
||||