Files
sdk/pkg/polymer/test/nested_binding_test.html
T
jmesserly@google.com d9709470cc "Reverting 29728"
I changed the test to avoid using mirrors. Somehow, import mirrors exposes a strange dart2js interceptor bug, but only in unchecked mode. (I only ran checked mode in my local tests :|. Doh)
Needs more investigation, but what seems to be happening:

* setInnerHtml creates a document
* it tries to append <base> to the <head>
* interceptor gets "Document" instead of "HtmlDocument"
* so the `document.head` fails

The bug seems to require Shadow DOM+unchecked+mirrors. Anyway, since it's totally unrelated to this test or the bug fix for 14700, I'm just working around it for now. Will open a separate issue.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//54983011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29767 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 19:59:45 +00:00

32 lines
910 B
HTML

<!doctype html>
<!--
Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<html>
<!--polymer-test: this comment is needed for test_suite.dart-->
<head>
<title>nesting binding test</title>
<script src="packages/unittest/test_controller.js"></script>
</head>
<body>
<polymer-element name="my-test">
<template>
<h2>Fruits</h2>
<ul id="fruit">
<template repeat="{{fruit in fruits}}">
<template if="{{ fruit == 'pears' }}">
<li>Short name: [{{fruit}}]</li>
</template>
</template>
</ul>
</template>
</polymer-element>
<my-test></my-test>
<script type="application/dart" src="nested_binding_test.dart"></script>
</body>
</html>