对 Firefox OS 开发者,今天是好日子,因为 Firefox OS 发布了 4.0 模拟器。该版本包含诸多新特性: 新的连接按钮There is a new ‘Connect’ button for each app that opens a developer toolbox connected to that specific app. This means that you won’t have to search through messages in the Console or filter through scripts in the Debugger in order to find information specific to your app. 付费应用测试There is now a dropdown menu in each app’s dashboard where you can select a receipt type. The simulator add-on will then download a test receipt from a Marketplace receipt service and reinstall the app using it. This way you can test receipt verification with the various types of receipts that you may require – valid, invalid, and refunded. The new Connect button, Refresh Button, and Receipts drop-down 远程 CSS 样式化If you connect to an app while using a Nightly or Aurora build of Firefox, there is a Style Editor tool you can use to edit the style sheets for your app. Changes are applied instantaneously. Live editing the Firefox OS Boilerplate app to have a less than charming red background 模拟触摸事件Gaia’s touch events simulation has been integrated such that interacting with the Simulator using a mouse now generates real touch events. This fixes a myriad of issues in core Gaia apps that assume touch interactions. It also means you can test third party apps that rely on touch events without needing to fall back to mouse events. 隐藏的特性:Shift-Ctrl/Cmd-RWhen using the keyboard shortcut Ctrl-R (Cmd-R on Mac) to refresh an app, if you also hold down the Shift key, then the Simulator will clear persistent data such as AppCache, localStorage, sessionStorage, and IndexedDB while refreshing the app. 你可以通过这里 安装和更新模拟器 |