Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix co19 test LibTest/html/IFrameElement/IFrameElement.created_A01_t01 #117

Closed
terrylucas opened this issue Jul 6, 2017 · 1 comment
Closed
Assignees

Comments

@terrylucas
Copy link

Fix the test co19/LibTest/html/IFrameElement/IFrameElement.created_A01_t01

To create an IFrame custom element do the following and the test will work.

class MyIFrameElement extends IFrameElement {
  factory MyIFrameElement() {
    return new Element.tag('my-iframe');
  }

  MyIFrameElement.created() : super.created();

  void testit() {
    print("In testit 222");
  }
}



iframe_test() {
  var ife;
  var tag = 'my-iframe';
  document.registerElement(tag, MyIFrameElement, extendsTag: 'iframe');

  ife = document.createElement('iframe', 'my-iframe');
  document.body.append(ife);

  ife.testit();
  print(ife);
}

@sgrekhov
Copy link
Contributor

sgrekhov commented Jul 7, 2017

Fixed in both master and strong-mode branches

@sgrekhov sgrekhov closed this as completed Jul 7, 2017
@sgrekhov sgrekhov self-assigned this Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants