本文整理汇总了TypeScript中test/helper.getWidgetDOMElement函数的典型用法代码示例。如果您正苦于以下问题:TypeScript getWidgetDOMElement函数的具体用法?TypeScript getWidgetDOMElement怎么用?TypeScript getWidgetDOMElement使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getWidgetDOMElement函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: before
before(function() {
var data = {
'creditor': {},
'debitori': [{
'gen-persoană': PersonSection.PERSON_TYPES.INDIVIDUAL
}],
'activities': [{
'widgetClassName': 'InstitutionActivity',
'date': Date.now(),
'todo-items': [{
'id': 'writ-emitted',
'label': 'Emitere încheiere',
'isDone': true
}, {
'id': 'writ-sent',
'label': 'Expediere încheiere',
'isDone': false
}]
}]
};
newCaseDialog = new NewCaseDialog(data);
domElement = getWidgetDOMElement(newCaseDialog);
document.body.appendChild(domElement);
});
示例2: before
before(function() {
widgetName = 'SomeActivity';
descriptionText = 'Case institution';
activity = new Activity(widgetName, descriptionText);
domElement = getWidgetDOMElement(activity);
detailsSectionElement = domElement.children[2];
});
示例3: beforeEach
beforeEach(function() {
labelText = 'I do agree';
labeledCheckbox = new LabeledCheckbox(labelText);
domElement = getWidgetDOMElement(labeledCheckbox);
label = domElement.firstChild;
checkbox = label.firstChild;
});
示例4: beforeEach
beforeEach(function() {
id = 'first-item';
labelText = 'This is the first step';
todoItem = new TodoItem(id, labelText);
domElement = getWidgetDOMElement(todoItem);
labeledCheckbox = domElement.firstChild;
});
示例5: before
before(function() {
labelText = 'First name';
internalName = 'first-name';
fieldValues = { 'first-name': 'John' };
field = createField(LabeledTextField, labelText, internalName, fieldValues);
fieldElement = getWidgetDOMElement(field);
});
示例6: before
before(function() {
labelText = 'My LabeledTextField component';
fieldValue = 'Hi!';
textField = new LabeledTextField(labelText, fieldValue);
domElement = getWidgetDOMElement(textField);
label = domElement.firstChild;
input = label.querySelector('input');
});
示例7: before
before(function() {
defaultValue = 'some date';
dateField = new DateField(defaultValue);
domElement = getWidgetDOMElement(dateField);
assert.equal(domElement.tagName, 'DATE-FIELD', 'has the appropriate tag name');
input = domElement.querySelector('input');
});
示例8: beforeEach
beforeEach(function() {
widgetName = 'MyMoreSpecificWidget';
labelText = 'Some activity';
activity = new Activity2(widgetName, labelText);
domElement = getWidgetDOMElement(activity);
container = domElement.firstChild;
label = container.children[0];
dateField = container.children[1];
});
示例9: before
before(function() {
fieldValues = {
'numărul-de-înregistrare': '12-3/ABC',
'data-depunerii': '03.03.2016'
};
inquirySection = new InquirySection(fieldValues);
domElement = getWidgetDOMElement(inquirySection);
});
示例10: before
before(function() {
labelText = 'My LabeledDateField component';
fieldValue = '22.03.2015';
labeledDateField = new LabeledDateField(labelText, fieldValue);
domElement = getWidgetDOMElement(labeledDateField);
label = domElement.querySelector('label');
input = domElement.querySelector('input');
});