node-readability
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "node-readability", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Zihua Li", | ||
@@ -5,0 +5,0 @@ "description": "Turning any web page into a clean view.", |
@@ -41,3 +41,3 @@ var url = require("url"); | ||
frames.forEach(function (frame) { | ||
Array.prototype.slice.call(frames, 0).forEach(function (frame) { | ||
var frameSize = frame.offsetWidth + frame.offsetHeight; | ||
@@ -44,0 +44,0 @@ var canAccessFrame = false; |
@@ -8,4 +8,6 @@ require('./mock-helpers.js'); | ||
read('<html><body>Hello world!</body></html>', function(err, read) { | ||
read.document.body.innerHTML.should.include('Hello world!'); | ||
done(); | ||
setTimeout(function() { | ||
read.document.body.innerHTML.should.include('Hello world!'); | ||
done(); | ||
}, 0); | ||
}); | ||
@@ -12,0 +14,0 @@ }); |
@@ -21,3 +21,10 @@ require('./mock-helpers.js'); | ||
}); | ||
it('should handle frames', function(done) { | ||
read('<html><body><frame /><frame />Hello world!</body></html>', function(err, read){ | ||
read.document.body.innerHTML.should.include('Hello world!'); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162635
1253