mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Removed deprecated things from non-deprecated tests
This commit is contained in:
parent
24014b1701
commit
91d3887bc4
@ -1,4 +1,4 @@
|
|||||||
<script marko-init>
|
<script template-helpers>
|
||||||
var array1 = ['a', 'b', 'c'];
|
var array1 = ['a', 'b', 'c'];
|
||||||
var array2 = ['red', 'green', 'blue'];
|
var array2 = ['red', 'green', 'blue'];
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<script marko-init>
|
<script template-helpers>
|
||||||
var notEmpty = require('marko/helpers/notEmpty');
|
var notEmpty = require('marko/helpers/notEmpty');
|
||||||
var empty = require('marko/helpers/empty');
|
var empty = require('marko/helpers/empty');
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<script marko-init>
|
<script template-helpers>
|
||||||
function greeting(name, out) {
|
function greeting(name, out) {
|
||||||
out.write('Hello ' + name + '!');
|
out.write('Hello ' + name + '!');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
<script marko-init>
|
<script template-helpers>
|
||||||
var testHelpers = require('./test-helpers')
|
var testHelpers = require('./test-helpers')
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
onMount: function() {
|
|
||||||
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
<widget-types default="./"/>
|
|
||||||
|
|
||||||
<div w-bind=(data.includeWidget ? 'default' : null)>
|
|
||||||
[app-conditional-widget]
|
|
||||||
</div>
|
|
||||||
@ -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);
|
|
||||||
};
|
|
||||||
@ -1 +1 @@
|
|||||||
div w-bind
|
div
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
div w-bind
|
div
|
||||||
@ -1 +1 @@
|
|||||||
div w-bind
|
div
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<div w-bind w-preserve-attrs="style,class">
|
<div style:no-update class:no-update>
|
||||||
<a href="http://www.ebay.com" w-preserve-attrs="href">
|
<a no-update:href="http://www.ebay.com">
|
||||||
eBay
|
eBay
|
||||||
</a>
|
</a>
|
||||||
<span ref="hello">Hello ${data.name}!</span>
|
<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>
|
</div>
|
||||||
@ -1,3 +1,3 @@
|
|||||||
<div w-bind no-update>
|
<div no-update>
|
||||||
Hello ${data.name}! You have ${data.messageCount} new messages.
|
Hello ${data.name}! You have ${data.messageCount} new messages.
|
||||||
</div>
|
</div>
|
||||||
@ -1 +1 @@
|
|||||||
div w-bind
|
div
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
div w-bind
|
div
|
||||||
Loading…
x
Reference in New Issue
Block a user