You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
594 B
29 lines
594 B
10 months ago
|
<!doctype html>
|
||
|
<html>
|
||
|
<script type='text/javascript' src='../../../require.js'></script>
|
||
|
<script>
|
||
|
require.config({
|
||
|
map: {
|
||
|
'*': {
|
||
|
'css': 'require-css/css'
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
<script src='app/core-components.js'></script>
|
||
|
|
||
|
<body>
|
||
|
<h1>test</h1>
|
||
|
</body>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
require(['app'], function(){});
|
||
|
require(['popup'], function(popupHTML) {
|
||
|
var div = document.createElement('div');
|
||
|
div.innerHTML = popupHTML;
|
||
|
document.body.appendChild(div);
|
||
|
alert(div.childNodes[0].offsetWidth == 340 ? 'Style query passed' : 'Style query failed');
|
||
|
});
|
||
|
</script>
|