bones_ui_test_clit library

Bone UI - Test CLI

Classes

AudioFileReader
BonesUI
BonesUICompiler
A Bones_UI project compiler. To run the UI tests the project must be compiled first.
BonesUIPlatform
The Bones_UI plugin: a PlatformPlugin based on a wrapped BrowserPlatform instance and a BonesUICompiler.
BonesUITestRunner
A Bones_UI test runner.
BUIElementGenerator
BUIManifest
BUIManifestRender
BUIRender
BUIRenderSource
BUIView
BUIViewProvider
BUIViewProviderBase
CalendarEvent
Completer<T>
A way to produce Future objects and to complete them later with a value or error.
ConfigDocument
CSSProvider
DartRunner
ElementGeneratorBase
ElementProvider
EventHandlerPrivate
EventSink<T>
A Sink that supports adding errors.
ExplorerModel
FieldLengthValidator
FieldNormalizerGroup
FieldValidatorGroup
Future<T>
The result of an asynchronous computation.
FutureOr<T>
A type representing values that are either Future<T> or T.
ImageClip
Represents an image clip parameters.
ImageFileReader
InputConfig
Configuration for an input.
JSONConfig
JSONConfigDocument
MasonryItem
MultiStreamController<T>
An enhanced stream controller provided by Stream.multi.
Represents a navigation (route + parameters).
PopupGroup
ResourceConfig<D extends ConfigDocument>
Stream<T>
A source of asynchronous data events.
StreamConsumer<S>
Abstract interface for a "sink" accepting multiple entire streams.
StreamController<T>
A controller with the stream it controls.
StreamIterator<T>
An Iterator-like interface for the values of a Stream.
StreamSink<S>
A object that accepts stream events both synchronously and asynchronously.
StreamSubscription<T>
A subscription on events from a Stream.
StreamTransformer<S, T>
Transforms a Stream.
StreamTransformerBase<S, T>
Base class for implementing StreamTransformer.
StreamView<T>
Stream wrapper that only exposes the Stream interface.
SynchronousStreamController<T>
A stream controller that delivers its events synchronously.
TextProvider
Timer
A countdown timer that can be configured to fire once or repeatedly.
UIAsyncContent
An asynchronous content.
UIButton
A simple button implementation.
UIButtonBase
Base class for button components.
UIButtonCapture
A generic capture button. See UICapture.
UIButtonCapturePhoto
A Button that captures a photo. See UICapture.
UIButtonLoader
UICalendar
A calendar component.
UICalendarPopup
A button component that shows an UICalendar dialog when clicked.
UICapture
Base class for capture components. See UIButtonCapture and UIButtonCapturePhoto.
UIClipImage
Component to clip an image.
UIColorPicker
UIColorPickerInput
UIComponent
Base class to create Bones_UI components.
UIComponentAsync
A component that renders a content asynchronously.
UIComponentAttributeHandler<C extends UIComponent, T>
Handler of a UIComponent attribute.
UIComponentGenerator<C extends UIComponent>
A generator of UIComponent based in a HTML tag, for dom_builder (extends ElementGenerator).
UIConsole
A console output int the UI.
UIControlledComponent
UIDataSource
UIDeviceOrientation
Tracks and fires events of device orientation changes.
UIDialog
UIDialogAlert
UIDialogBase
Component that renders a dialog.
UIDialogEditImage
An UIDialog that edits an image.
UIDialogInput
UIDialogLoading
UIDocument
An UIComponentAsync to show rendered documents, like markdown, html, json and text.
UIDOMActionExecutor
UIDOMGenerator
A DOMGenerator (from package dom_builder) able to generate UIElement (from dart:html).
UIEventHandler
UIExplorer
UIField<V>
For a UIComponent that is a field (has a value).
UIFieldMap<V>
For a UIComponent that is a field with a Map value.
UIInfosTable
Component that renders a table with information.
UIInputTable
Component that renders a table with inputs.
UILoading
UILoadingConfig
UIMasonry
UIMenu
UIMultiSelection
A component that renders a multi-selection input.
UINavigableComponent
Bones_UI base class for navigable components using routes.
UINavigableContent
A Bones_UI component for navigable contents by routes.
UINavigator
Handles navigation and routes.
UIPopupMenu
UIRoot
The root for Bones_UI component tree.
UISVG
Component to show a SVG.
URLFileReader
Represents an url link, with an optional target.
VideoFileReader
YAMLConfig
YAMLConfigDocument
Zone
A zone represents an environment that remains stable across asynchronous calls.
ZoneDelegate
An adapted view of the parent zone.
ZoneSpecification
A parameter object with custom zone function handlers for Zone.fork.

Enums

CalendarMode
CaptureDataFormat
The internal representation of the captured data. It's recommended to use the target format for your case, to avoid data duplication and data conversion.
CaptureType
The capture type of an UICapture.
ControllerPropertiesType
PopupPosition
UIComponentClearParent
UIComponent behavior to clear the component.
UILoadingType

Extensions

CalendarModeExtension on CalendarMode
ElementExtension on UIElement
FutureExtensions on Future<T>
Convenience methods on futures.
FutureIterable on Iterable<Future<T>>
FutureRecord2 on (Future<T1>, Future<T2>)
Parallel operations on a record of futures.
FutureRecord3 on (Future<T1>, Future<T2>, Future<T3>)
Parallel operations on a record of futures.
FutureRecord4 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>)
Parallel operations on a record of futures.
FutureRecord5 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)
Parallel operations on a record of futures.
FutureRecord6 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)
Parallel operations on a record of futures.
FutureRecord7 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>)
Parallel operations on a record of futures.
FutureRecord8 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>, Future<T8>)
Parallel operations on a record of futures.
FutureRecord9 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>, Future<T8>, Future<T9>)
Parallel operations on a record of futures.
IterableElementExtension on Iterable<E>
SelectElementExtension on SelectElement

Constants

bonesUiTestCliTitle → const String

Properties

logger → _Logger
final

Functions

$uiButton({dynamic id, String? field, dynamic classes, dynamic style, Map<String, String>? attributes, String? text, bool commented = false}) DOMElement
DOMElement tag ui-button for UIButton.
$uiButtonLoader({dynamic id, String? field, dynamic classes, dynamic style, dynamic buttonClasses, dynamic buttonStyle, Map<String, String>? attributes, dynamic content, bool commented = false, bool? withProgress, dynamic loadingConfig}) DOMElement
DOMElement tag ui-button-loader for UIButtonLoader.
$uiDialog({dynamic id, String? field, dynamic classes, dynamic style, bool? show, bool? showCloseButton, Map<String, String>? attributes, dynamic content, bool commented = false}) DOMElement
DOMElement tag ui-dialog for UIDialog.
$uiLoading({UILoadingType? type, dynamic inline, dynamic color, dynamic zoom, dynamic text, dynamic textZoom, bool? withProgress}) DIVElement
$uiSVG({dynamic id, String? field, dynamic classes, dynamic style, String? src, dynamic width, dynamic height, dynamic color, dynamic title, Map<String, String>? attributes, dynamic content, bool commented = false}) DOMElement
DOMElement tag ui-svg for UISVG.
canBeInDOM(dynamic element) bool
Returns true if element type is able to be in DOM.
fieldEmailValidator(String field, String? value) bool
fieldNormalizerLowerCase(String field, Object? value) Object?
fieldNormalizerTrim(String field, Object? value) Object?
fieldNormalizerUpperCase(String field, Object? value) Object?
fieldURLDataBase64Validator(String field, String? value) bool
fieldURLValidator(String field, String? value) bool
getLanguageByExtension(String extension) String?
Returns a document language by extension.
getUILoadingType(dynamic type) UILoadingType?
getUILoadingTypeClass(UILoadingType type) String?
htmlAsSvgContent(String html, {int? width, int? height, String? rootClass, String? style}) String?
isComponentInDOM(dynamic element) bool
Returns true if a Bones_UI component is in DOM.
isJustHelpArgs(List<String> args) bool
main([List<String> args = const <String>[]]) Future<void>
parseBUIAttribute(String? buiCode, String attributeName) String?
printBox(List lines) → void
printTestCliTitle({bool showDartVersion = true, bool showOSVersion = true, String? testPlatform}) → void
Prints the Bones_UI Test CLI title.
runZoned<R>(R body(), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification, Function? onError}) → R
Runs body in its own zone.
runZonedGuarded<R>(R body(), void onError(Object error, StackTrace stack), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification}) → R?
Runs body in its own error zone.
scheduleMicrotask(void callback()) → void
Runs a function asynchronously.
unawaited(Future<void>? future) → void
Explicitly ignores a future.

Typedefs

AsyncContentProvider = Future? Function()
BUIViewPropertyProvider = String Function(BUIView view)
CapturePhotoEditor = FutureOr<ImageElement?> Function(ImageElement image)
ControllerCallback = void Function()
Type of a stream controller's onListen, onPause and onResume callbacks.
ControllerCancelCallback = FutureOr<void> Function()
Type of stream controller onCancel callbacks.
CreatePeriodicTimerHandler = Timer Function(Zone self, ZoneDelegate parent, Zone zone, Duration period, void f(Timer timer))
The type of a custom Zone.createPeriodicTimer implementation function.
CreateTimerHandler = Timer Function(Zone self, ZoneDelegate parent, Zone zone, Duration duration, void f())
The type of a custom Zone.createTimer implementation function.
ErrorCallbackHandler = AsyncError? Function(Zone self, ZoneDelegate parent, Zone zone, Object error, StackTrace? stackTrace)
The type of a custom Zone.errorCallback implementation function.
FieldInputRender = dynamic Function(InputConfig inputConfig)
FieldValueEvent = void Function(dynamic event)
FieldValueNormalizer<V> = V? Function(String field, V? value)
FieldValueProvider = dynamic Function(String field)
FieldValueValidator = bool Function(String field, String? value)
FilterElement = bool Function(UIElement elem)
FilterRendered = bool Function(dynamic elem)
ForEachComponent = void Function(Object elem)
ForEachElement = void Function(UIElement elem)
ForkHandler = Zone Function(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification? specification, Map<Object?, Object?>? zoneValues)
The type of a custom Zone.fork implementation function.
HandleUncaughtErrorHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, Object error, StackTrace stackTrace)
The type of a custom Zone.handleUncaughtError implementation function.
ParametersProvider = Map<String, String> Function()
PrintHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, String line)
The type of a custom Zone.print implementation function.
RegisterBinaryCallbackHandler = ZoneBinaryCallback<R, T1, T2> Function<R, T1, T2>(Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2))
The type of a custom Zone.registerBinaryCallback implementation function.
RegisterCallbackHandler = ZoneCallback<R> Function<R>(Zone self, ZoneDelegate parent, Zone zone, R f())
The type of a custom Zone.registerCallback implementation function.
RegisterUnaryCallbackHandler = ZoneUnaryCallback<R, T> Function<R, T>(Zone self, ZoneDelegate parent, Zone zone, R f(T arg))
The type of a custom Zone.registerUnaryCallback implementation function.
RenderAsync = Future? Function(Map<String, dynamic> properties)
RenderPropertiesProvider = Map<String, dynamic> Function()
RunBinaryHandler = R Function<R, T1, T2>(Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2), T1 arg1, T2 arg2)
The type of a custom Zone.runBinary implementation function.
RunHandler = R Function<R>(Zone self, ZoneDelegate parent, Zone zone, R f())
The type of a custom Zone.run implementation function.
RunUnaryHandler = R Function<R, T>(Zone self, ZoneDelegate parent, Zone zone, R f(T arg), T arg)
The type of a custom Zone.runUnary implementation function.
ScheduleMicrotaskHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, void f())
The type of a custom Zone.scheduleMicrotask implementation function.
UIComponentAttributeAppender<C extends UIComponent, T> = void Function(C uiComponent, T? value)
UIComponentAttributeCleaner<C extends UIComponent, T> = void Function(C uiComponent)
UIComponentAttributeGetter<C extends UIComponent, T> = T? Function(C uiComponent)
UIComponentAttributeParser<T> = T? Function(dynamic value)
UIComponentAttributeSetter<C extends UIComponent, T> = void Function(C uiComponent, T? value)
UIComponentInstantiator<C extends UIComponent> = C Function(UIElement? parent, Map<String, DOMAttribute> attributes, UINode? contentHolder, List<DOMNode>? contentNodes)
UIEventListener = void Function(dynamic event, List? params)
URLFilter = URLLink Function(String url)
ZoneBinaryCallback<R, T1, T2> = R Function(T1, T2)
ZoneCallback<R> = R Function()
ZoneUnaryCallback<R, T> = R Function(T)

Exceptions / Errors

AsyncError
An error and a stack trace.
DeferredLoadException
Thrown when a deferred library fails to load.
ParallelWaitError<V, E>
Error thrown when waiting for multiple futures, when some have errors.
TimeoutException
Thrown when a scheduled timeout happens while waiting for an async result.