TestItemCollection

Properties

Link copied to clipboard
abstract val size: Int

Gets the number of items in the collection.

Functions

Link copied to clipboard
abstract fun add(item: TestItem)

Adds the test item to the children. If an item with the same ID already exists, it'll be replaced.

Link copied to clipboard
abstract fun delete(itemId: String)

Removes a single test item from the collection.

Link copied to clipboard
abstract fun forEach(callback: (item: TestItem, collection: TestItemCollection) -> Unit, thisArg: JsAny? = definedExternally)

Iterate over each entry in this collection.

Link copied to clipboard
open operator fun get(key: Symbol.iterator): () -> JsIterator<Tuple2<JsString, TestItem>>

abstract fun get(itemId: String): TestItem?

Efficiently gets a test item by ID, if it exists, in the children.

Link copied to clipboard
abstract fun replace(items: ReadonlyArray<TestItem>)

Replaces the items stored by the collection.