Skip to content

Commit

Permalink
Track some API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Oct 9, 2024
1 parent daa92af commit acb8f5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ class TreehouseLayoutTest {

@Test fun widgetsAddChildViews() {
val layout = TreehouseLayout(activity, throwingWidgetSystem, activity.onBackPressedDispatcher)
val rootView = layout.root.value as ViewGroup

val view = View(activity)
layout.root.children.insert(0, viewWidget(view))
assertThat(layout.childCount).isEqualTo(1)
assertThat(layout.getChildAt(0)).isSameInstanceAs(view)
assertThat(rootView.childCount).isEqualTo(1)
assertThat(rootView.getChildAt(0)).isSameInstanceAs(view)
}

@Test fun attachAndDetachSendsStateChange() {
Expand Down
5 changes: 2 additions & 3 deletions test-app/ios-uikit/TestApp/TestAppViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ class TestAppViewController : UIViewController {
let widgetSystem = TestSchemaTreehouseWidgetSystem()
let treehouseView = TreehouseUIView(widgetSystem: widgetSystem)
let content = treehouseApp.createContent(
source: TestAppContent(),
codeListener: CodeListener()
source: TestAppContent()
)
ExposedKt.bindWhenReady(content: content, view: treehouseView)

let tv = treehouseView.view
let tv = treehouseView.root.value
tv.translatesAutoresizingMaskIntoConstraints = false

self.view.addSubview(tv)
Expand Down

0 comments on commit acb8f5d

Please sign in to comment.