當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript helper.getWidgetDOMElement函數代碼示例

本文整理匯總了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);
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:26,代碼來源:NewCaseDialogTest.ts

示例2: before

 before(function() {
   widgetName = 'SomeActivity';
   descriptionText = 'Case institution';
   activity = new Activity(widgetName, descriptionText);
   domElement = getWidgetDOMElement(activity);
   detailsSectionElement = domElement.children[2];
 });
開發者ID:gurdiga,項目名稱:xo,代碼行數:7,代碼來源:ActivityTest.ts

示例3: beforeEach

  beforeEach(function() {
    labelText = 'I do agree';
    labeledCheckbox = new LabeledCheckbox(labelText);

    domElement = getWidgetDOMElement(labeledCheckbox);
    label = domElement.firstChild;
    checkbox = label.firstChild;
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:8,代碼來源:LabeledCheckboxTest.ts

示例4: beforeEach

  beforeEach(function() {
    id = 'first-item';
    labelText = 'This is the first step';
    todoItem = new TodoItem(id, labelText);

    domElement = getWidgetDOMElement(todoItem);
    labeledCheckbox = domElement.firstChild;
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:8,代碼來源:TodoItemTest.ts

示例5: before

  before(function() {
    labelText = 'First name';
    internalName = 'first-name';
    fieldValues = { 'first-name': 'John' };

    field = createField(LabeledTextField, labelText, internalName, fieldValues);
    fieldElement = getWidgetDOMElement(field);
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:8,代碼來源:createFieldTest.ts

示例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');
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:9,代碼來源:LabeledTextFieldTest.ts

示例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');
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:9,代碼來源:DateFieldTest.ts

示例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];
 });
開發者ID:gurdiga,項目名稱:xo,代碼行數:9,代碼來源:Activity2Test.ts

示例9: before

  before(function() {
    fieldValues = {
      'numărul-de-înregistrare': '12-3/ABC',
      'data-depunerii': '03.03.2016'
    };

    inquirySection = new InquirySection(fieldValues);
    domElement = getWidgetDOMElement(inquirySection);
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:9,代碼來源:InquirySectionTest.ts

示例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');
  });
開發者ID:gurdiga,項目名稱:xo,代碼行數:10,代碼來源:LabeledDateFieldTest.ts


注:本文中的test/helper.getWidgetDOMElement函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。