test_browser/components/c_facets/Attr_test.js
'use strict';
/*
var assert = require('assert')
, async = require('async');
describe('Attr facet', function() {
milo.config.check = true; // Enable 'check' library so that inputs to the Attr facet are validated
var ComponentClass = milo.createComponentClass({
className: 'AttrComponent',
facets: {
attr: {
attributes: {
// Used for simple tests
'.modelPath1': 'width',
'.modelPath2': { 'height': '$' },
// Used for object value lookup tests
'.modelPath3': {
'id': '$',
'src': function (data) { return data + 'yo'}
},
// Used for function tests
'.modelPath4': function(data, el) {
// Do stuff to el?
return null;
}
}
}
}
});
var component;
var dataSource;
beforeEach(function() {
component = ComponentClass.createOnElement();
dataSource = new milo.Model();
milo.minder(dataSource, '->>', component.attr);
});
it('should apply attr values on width and height', function(done) {
done();
});
});
*/