Browse Source

WpfDesigner tests: Change WPF namespace from winfx/2006/xaml/presentation to netfx/2007/xaml/presentation

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2626 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 18 years ago
parent
commit
65c82c0ab6
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/ModelTestHelper.cs
  2. 12
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/SamplesTests.cs
  3. 22
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/SimpleLoadTests.cs
  4. 16
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/WhitespaceTests.cs
  5. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlConstants.cs

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/ModelTestHelper.cs

@ -43,7 +43,7 @@ namespace ICSharpCode.WpfDesign.Tests.Designer
protected DesignItem CreateCanvasContext(string xaml) protected DesignItem CreateCanvasContext(string xaml)
{ {
XamlDesignContext context = CreateContext(@"<Canvas XamlDesignContext context = CreateContext(@"<Canvas
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
" + xaml + "</Canvas>"); " + xaml + "</Canvas>");
Canvas canvas = (Canvas)context.RootItem.Component; Canvas canvas = (Canvas)context.RootItem.Component;
@ -57,7 +57,7 @@ namespace ICSharpCode.WpfDesign.Tests.Designer
{ {
expectedXaml = expectedXaml =
"<?xml version=\"1.0\" encoding=\"utf-16\"?>\n" + "<?xml version=\"1.0\" encoding=\"utf-16\"?>\n" +
("<Canvas xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" " + ("<Canvas xmlns=\"http://schemas.microsoft.com/netfx/2007/xaml/presentation\" " +
"xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\">\n" + expectedXaml.Trim()) "xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\">\n" + expectedXaml.Trim())
.Replace("\r", "").Replace("\n", "\n ") .Replace("\r", "").Replace("\n", "\n ")
+ "\n</Canvas>"; + "\n</Canvas>";

12
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/SamplesTests.cs

@ -21,11 +21,11 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<Page <Page
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
> >
<StackPanel <StackPanel
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<TextBlock> <TextBlock>
Hello, World! Hello, World!
@ -43,7 +43,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
TestLoading(@" TestLoading(@"
<!--<SnippetSimpleLayout>--> <!--<SnippetSimpleLayout>-->
<StackPanel <StackPanel
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<Button HorizontalAlignment=""Left"" <Button HorizontalAlignment=""Left""
Width=""100"" Width=""100""
@ -66,10 +66,10 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<Page <Page
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<DockPanel <DockPanel
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<TextBlock Background=""LightBlue"" <TextBlock Background=""LightBlue""
DockPanel.Dock=""Top"">Some Text</TextBlock> DockPanel.Dock=""Top"">Some Text</TextBlock>
@ -103,7 +103,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<Page <Page
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<StackPanel Background=""LightBlue""> <StackPanel Background=""LightBlue"">
<TextBlock Margin=""10,10,10,10"">Start Page</TextBlock> <TextBlock Margin=""10,10,10,10"">Start Page</TextBlock>

22
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/SimpleLoadTests.cs

@ -18,7 +18,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<Window <Window
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
</Window> </Window>
"); ");
@ -29,7 +29,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<Window <Window
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
Width=""300"" Height=""400""> Width=""300"" Height=""400"">
</Window> </Window>
@ -41,7 +41,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<Window <Window
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<Window.Height>100</Window.Height> <Window.Height>100</Window.Height>
</Window> </Window>
@ -53,7 +53,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
</t:ExampleClass> </t:ExampleClass>
@ -65,7 +65,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
StringProp=""a test string""> StringProp=""a test string"">
@ -78,7 +78,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
a test string a test string
@ -91,7 +91,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<t:ExampleClass.StringProp> <t:ExampleClass.StringProp>
@ -106,7 +106,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
a test string a test string
@ -122,7 +122,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<t:ExampleClass.OtherProp> <t:ExampleClass.OtherProp>
@ -138,7 +138,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<t:ExampleClass.OtherProp> <t:ExampleClass.OtherProp>
@ -186,7 +186,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleDependencyObject <t:ExampleDependencyObject
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
t:ExampleService.Example=""attached value""> t:ExampleService.Example=""attached value"">

16
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/WhitespaceTests.cs

@ -18,7 +18,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
@ -33,7 +33,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
a test string a test string
@ -46,7 +46,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
a test a test
@ -60,7 +60,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve"">
@ -75,7 +75,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve"">
a test string a test string
@ -88,7 +88,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve"">
a test a test
@ -102,7 +102,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve""> <![CDATA[ xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" xml:space=""preserve""> <![CDATA[
This is text inside the CData section. This is text inside the CData section.
@ -119,7 +119,7 @@ And that was an empty line.
{ {
TestLoading(@" TestLoading(@"
<t:ExampleClass <t:ExampleClass
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/netfx/2007/xaml/presentation""
xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @""" xmlns:t=""" + XamlTypeFinderTests.XamlDomTestsNamespace + @"""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""> xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
some text some text

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlConstants.cs

@ -28,8 +28,8 @@ namespace ICSharpCode.WpfDesign.XamlDom
/// <summary> /// <summary>
/// The namespace used for the WPF schema. /// The namespace used for the WPF schema.
/// Value: "http://schemas.microsoft.com/winfx/2006/xaml/presentation" /// Value: "http://schemas.microsoft.com/netfx/2007/xaml/presentation"
/// </summary> /// </summary>
public const string PresentationNamespace = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"; public const string PresentationNamespace = "http://schemas.microsoft.com/netfx/2007/xaml/presentation";
} }
} }

Loading…
Cancel
Save