joewalker/devtools-window — pull request #264 by harthur (2012-11-20 09:08:04+00:00)
Title: Port remaining style inspector tests, fix for #210

I added two methods to `head.js`: `openInspector()` to open the toolbox with the inspector tool selected, and `getComputedView()`, to get the computed view object from the inspector.

I took out the code in the tests that used the old API for opening the style inspector and computed view, and replaced it with calls to these functions and the toolbox API.

TODO:
I left one test commented out, `browser_computedview_bug_703643_context_menu_copy.js`. This test times out waiting for text to be copied to the clipboard.

The text is never copied because the context menu is never opened by this call to `EventUtils.synthesizeMouse()`: [https://github.com/harthur/devtools-window/blob/1c95838201ffd2c3f7f5ba5c9b7a04c6de401d9e/browser/devtools/styleinspector/test/browser_computedview_bug_703643_context_menu_copy.js#L64](browser_computedview_bug_703643_context_menu_copy.js#L64)

I can't figure out why the call fails, any help is appreciated.