Removed deprecated things from non-deprecated tests

This commit is contained in:
Patrick Steele-Idem 2017-01-06 12:27:55 -07:00
parent 24014b1701
commit 91d3887bc4
14 changed files with 13 additions and 40 deletions

View File

@ -1,4 +1,4 @@
<script marko-init>
<script template-helpers>
var array1 = ['a', 'b', 'c'];
var array2 = ['red', 'green', 'blue'];
</script>

View File

@ -1,4 +1,4 @@
<script marko-init>
<script template-helpers>
var notEmpty = require('marko/helpers/notEmpty');
var empty = require('marko/helpers/empty');
</script>

View File

@ -1,4 +1,4 @@
<script marko-init>
<script template-helpers>
function greeting(name, out) {
out.write('Hello ' + name + '!');
}

View File

@ -1,5 +1,5 @@
---
<script marko-init>
<script template-helpers>
var testHelpers = require('./test-helpers')
</script>

View File

@ -1,5 +0,0 @@
module.exports = {
onMount: function() {
}
};

View File

@ -1,5 +0,0 @@
<widget-types default="./"/>
<div w-bind=(data.includeWidget ? 'default' : null)>
[app-conditional-widget]
</div>

View File

@ -1,17 +0,0 @@
var expect = require('chai').expect;
module.exports = function(helpers) {
var widget = helpers.mount(require('./index'), {
includeWidget: false
});
expect(widget == null).to.equal(true);
expect(helpers.targetEl.innerHTML).contain('[app-conditional-widget]');
widget = helpers.mount(require('./index'), {
includeWidget: true
});
expect(widget != null).to.equal(true);
};

View File

@ -1 +1 @@
div w-bind
div

View File

@ -1,7 +1,7 @@
<div w-bind w-preserve-attrs="style,class">
<a href="http://www.ebay.com" w-preserve-attrs="href">
<div style:no-update class:no-update>
<a no-update:href="http://www.ebay.com">
eBay
</a>
<span ref="hello">Hello ${data.name}!</span>
<span ref="hello2" w-preserve-attrs="class" class="foo">Hello ${data.name}!</span>
<span ref="hello2" class:no-update="foo">Hello ${data.name}!</span>
</div>

View File

@ -1,3 +1,3 @@
<div w-bind no-update>
<div no-update>
Hello ${data.name}! You have ${data.messageCount} new messages.
</div>

View File

@ -1 +1 @@
div w-bind
div

View File

@ -1 +1 @@
div w-bind
div