Toolbar testing#1016
Open
gmurray81 wants to merge 11 commits into
Open
Conversation
Pair the existing per-platform handler sources (WPF.cs, WinUI.cs, GTK.cs, WindowsForms.cs, Desktop.cs) with explicit DotNetIOS.cs and DotNetAndroid.cs files so the LibraryProjectEmitter has C# sources for both .NET mobile targets. The emitter side (CodeGenerationLibrary marker matching + EventHandlerAnalyzer //WPF: fallback) was extended in a paired dev-tools commit; the handler.cs sources here are what those changes consume. - 24 cross-platform Infragistics handlers (FormatDateLabelAs*, ChartAxis- CurrencyFormat, ScatterShapeData*, TestsUpdate*InSeriesAddedEvent, etc.) where GTK.cs and WinUI.cs were already byte-identical: copied GTK.cs verbatim into both new files. - 42 Desktop.cs-only handlers (TestsDataLegendStyle*, TestsAlignGaugeLabels*, TestsRadialGaugeFormatLabel*, etc.) copied verbatim — these use only Infragistics.Core.Graphics types (SolidColorBrush, Colors) which are available on every .NET target. - 3 UI-divergent tooltip handlers (TestsAddNameTooltip, TestsAddStaticTextTooltip, TestsAddDataLegendValueFormatSpecifier) hand-written using UIKit.UILabel (DotNetIOS) and Android.Widget.TextView (DotNetAndroid), keeping the same Infragistics chart binding logic as the GTK/WinUI variants. - 6 items had Xam* (internal Implementation types) swapped for the DotNetIOS/DotNetAndroid public View types: XamDataLegend → DataLegendView, XamDataChart → DataChartView, XamCategoryChart → CategoryChartView, XamDataPieChart → DataPieChartView, XamToolbar → Toolbar. The Xam* types are not publicly visible on the DotNet mobile builds, so handler code must use the View wrappers instead. Result on the DotNetIOS sweep: 14,706 / 3,155 / 644 = 79.5% pass, up from 13,594 / 4,270 / 641 = 73.5%. Most of the recovered tests were previously failing with "library does not have item: X" because the emitter could not resolve any C# source for X under the DotNetIOS target. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| const data: any[] = grid.dataSource as any[]; | ||
| for (let i = 0; i < data.length; i++) { | ||
| const oldItem = { ...data[i] }; | ||
| data[i].Salary = Math.round(60000 + Math.random() * 140000); |
|
|
||
| for (let i = 0; i < count; i++) { | ||
| const age = Math.round(EmployeesSalesDataGenerator.getNumber(20, 40)); | ||
| const gender = EmployeesSalesDataGenerator.getGender(); |
| Photo: photoPath, | ||
| Phone: EmployeesSalesDataGenerator.getPhone(), | ||
| Street: EmployeesSalesDataGenerator.getStreet(), | ||
| Salary: EmployeesSalesDataGenerator.getNumber(40, 200) * 1000, |
|
|
||
| public static getPhone(): string { | ||
| const phoneCode = this.getNumber(100, 900); | ||
| const phoneNum1 = this.getNumber(100, 900); |
| public static getPhone(): string { | ||
| const phoneCode = this.getNumber(100, 900); | ||
| const phoneNum1 = this.getNumber(100, 900); | ||
| const phoneNum2 = this.getNumber(1000, 9000); |
| const year = RealEstateDataGenerator.getNumber(1950, 2015); | ||
| const age = 2020 - year; | ||
|
|
||
| const gender = RealEstateDataGenerator.getGender(); |
|
|
||
| public static getPhone(): string { | ||
| const phoneCode = this.getNumber(100, 900); | ||
| const phoneNum1 = this.getNumber(100, 900); |
| public static getPhone(): string { | ||
| const phoneCode = this.getNumber(100, 900); | ||
| const phoneNum1 = this.getNumber(100, 900); | ||
| const phoneNum2 = this.getNumber(1000, 9000); |
…itError The Blazor sibling already does SetEditError + RejectEdit. WPF was missing the RejectEdit call, so with AutoAcceptEdits=true the host would auto-accept the edit anyway and the test pattern "subscribe Script-bound reject handler, expect edit rejected" silently passed through. Aligns with Blazor. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…i-xplat-examples into toolbar-testing
…i-xplat-examples into toolbar-testing
…DataSource The DotNetIOS and GTK chart wrappers renamed ItemsSource -> DataSource (portable+WF DataSource-naming convergence). Update the SelectionMatcherOnViewInit samples to read chart.DataSource on those platforms. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…i-xplat-examples into toolbar-testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.