lib/red-glass/red_glass.rb in red-glass-0.0.2 vs lib/red-glass/red_glass.rb in red-glass-0.0.3
- old
+ new
@@ -59,10 +59,10 @@
load_red_glass_js
end
def load_jQuery
has_jQuery = @driver.execute_script "var hasJQuery = typeof jQuery == 'function' ? true : false; return hasJQuery"
- raw_js = File.open(File.expand_path("#{PROJ_ROOT}/public/scripts/jquery-1.7.1.js"), 'rb').read
+ raw_js = File.open(File.expand_path("#{PROJ_ROOT}/public/scripts/jquery-1.8.0.min.js"), 'rb').read
@driver.execute_script raw_js if !has_jQuery
end
def load_json2
has_old_json = @driver.execute_script "var hasOldJSON = typeof JSON.license == 'undefined' ? false : true; return hasOldJSON"
\ No newline at end of file