Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building for Legacy Browsers - jQuery UK 2013

Building for Legacy Browsers - jQuery UK 2013

Joe Pettersson

April 19, 2013
Tweet

Other Decks in Programming

Transcript

  1. Complex clientside apps and legacy browsers (a story of frustration)

    ! @Joe8Bit  –  Friday  19th  of  Apr  2013  
  2. •  Frameworks and tools" •  Refining User Experience" •  The

    JScript JavaScript engine (and why I want to stab it with a fork)"
  3. •  Frameworks and tools" •  Refining User Experience" •  The

    JScript JavaScript engine (and why I want to stab it with a fork)" •  Testing, testing and more testing"
  4. •  Frameworks and tools" •  Refining User Experience" •  The

    JScript JavaScript engine (and why I want to stab it with a fork)" •  Testing, testing and more testing" •  The role of jQuery and other libraries"
  5. •  Frameworks and tools" •  Refining User Experience" •  The

    JScript JavaScript engine (and why I want to stab it with a fork)" •  Testing, testing and more testing" •  The role of jQuery and other libraries"
  6. •  Frameworks and tools" •  Refining User Experience" •  The

    JScript JavaScript engine (and why I want to stab it with a fork)" •  Testing, testing and more testing" •  The role of jQuery and other libraries"
  7. PROTIP   Put  downloaded  raw  disk  images  in  ~/.ievms/  

      on  any  device  to  prevent  having  to  download   them  again  on  that  machine  
  8. Part one: Testing - Local testing and development environments
 "

    Pseudo-­‐distributed  browser  tesIng  with  Selenium  and   Virtual  Machines  !
  9. “Selenium is a suite of tools to automate web browsers

    across many platforms.”" http://www.seleniumhq.org/!
  10. Starting stand alone Selenium in ‘hub’ mode:" $  java  -­‐jar

     selenium-­‐server-­‐standalone.jar  -­‐role  hub     Starting stand alone Selenium in ‘hub’ mode:" $  java  -­‐jar  selenium-­‐server-­‐standalone.jar  -­‐role   webdriver  –hub  http://0.0.1.1    
  11. Part one: Testing - Local testing and development environments
 "

    Pseudo-­‐distributed  browser  tesIng  with  Selenium  and   Virtual  Machines  ! Running  Tests!
  12. Integration tests take a while, especially when running them in

    multiple environments’ ! Unfortunate truth!
  13. ?"

  14. So,  what  if  that  is  too  much  effort?  What  if

     I   don’t  have  the  Eme  or  the  desire?  
  15. •  Easy, fast setup" •  Loads of easy integrations "

    •  Scalability and parallelisation" •  Great support"
  16. Integrating Saucelabs distributed testing in a Rails project ! 1. 

    Add jasmine-sauce to your Gemfile   2. bundle  install   3. bundle  exec  sauce  config   4. rails  generate  sauce:jasmine   5. rake  jasmine:ci:sauce  
  17. “1.3.1  should  support  IE6  (we  dropped  our  IE  test  suite

     awhile  ago   because  it  was  difficult  to  maintain,  and  we  lost  a  bit  of  insight  into   whether  or  not  IE6  would  run  without  errors).  I  think  we  dropped  IE6   support  in  the  upcoming  2.0  branch  as  IE6  has  been  EOLed.”     h:ps://github.com/pivotal/jasmine/issues/327    
  18. Part two: The role of jQuery and other libraries" Joe

     Pe:ersson  –  Friday  19th  of  Apr  2013