##// END OF EJS Templates
use $(window).height() instead of window.innerHeight...
use $(window).height() instead of window.innerHeight to measure window height when resizing contents Sometimes these values differ by a pixel, we may never know why. window.innerHeight seems to be larger when they disagree, causing an extra scrollbar to be drawn.

File last commit:

r15516:43a46eb6
r20657:d4563772
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
Thomas Kluyver
Add tests for things in utils
r15516 from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called