Created
April 15, 2016 20:55
-
-
Save teamdandelion/7761a63b662d044c36c2a5affdc69290 to your computer and use it in GitHub Desktop.
Attempt to replace more than one element in wct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="import" href="../../polymer/polymer.html"> | |
<script src="../../webcomponentsjs/webcomponents-lite.min.js"></script> | |
<script src="../../web-component-tester/browser.js"></script> | |
</head> | |
<body> | |
<script> | |
window.HTMLImports.whenReady(function() { | |
describe('a testing block', function() { | |
before(function() { | |
var toMock = ['foo-1', 'foo-2']; | |
toMock.forEach(function(x){ | |
Polymer({ | |
is: x, | |
amIMock: function() { | |
return false; | |
}, | |
}) | |
}) | |
toMock.forEach(function(x) { | |
Polymer({ | |
is: x + '-mock', | |
amIMock: function() { | |
return true; | |
} | |
}) | |
replace(x).with(x+'-mock'); | |
}); | |
}) | |
it('replacement occured', function() { | |
// pass | |
}) | |
}) | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment