Skip to content

Commit

Permalink
Fix a bug in spec code
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Mar 21, 2013
1 parent 140f3a0 commit 4fb7a68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/specs/extensible/plugin-style/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ define(function(require) {

var styleCount = document.getElementsByTagName('style').length
test.assert(styleCount === 3, styleCount)
test.assert(document.getElementById('b-css').innerText.indexOf('.b') >= 0, 'b.css')

var styleEl = document.getElementById('b-css')
var cssText = styleEl.innerHTML || styleEl.styleSheet.cssText
test.assert(cssText.indexOf('.b') >= 0, 'b.css')

test.next()

Expand Down

0 comments on commit 4fb7a68

Please sign in to comment.