superpreview

There are lots of ways to test for multiple browsers. Way back in the good ol’ days we had our own little browser ghetto—a seedy corner of the office where dusty, dishevelled computers and their unloved browsers gathered. Testing involved that most despised of activities: walking across the office.

有多种测试多个浏览器的方法。 回顾过去的美好时光,我们拥有自己的小浏览器贫民区-办公室的肮脏角落,那里是尘土飞扬,衣衫不整的计算机及其不受欢​​迎的浏览器。 测试涉及最讨厌的活动:在办公室中走动。

Later, we installed virtual machines with different browser versions and different operating systems—a hefty investment of time, energy, and often machine-grinding frustration.

后来,我们安装了具有不同浏览器版本和不同操作系统的虚拟机,这是对时间,精力以及经常使机器受挫的时间的巨大投资。

Other developers subscribed to solutions involving online tools such as browsershots.org, which render your pages in multiple browsers and return those renderings to you as bitmap images. Unfortunately, this approach is often slow and cumbersome, and only works on public URLs, which makes it difficult to debug as you’re building a site, and certainly doesn’t integrate easily with your development tools and lifecycle. More critically, none of these bitmap-based approaches allow you to debug beyond simple layout tests. For example, they offer none of the DOM inspection tools that you’d expect in a layout debugging system.

其他开发人员订阅了涉及在线工具(例如browsershots.org)的解决方案,该工具可在多个浏览器中渲染您的页面,并将这些渲染作为位图图像返回给您。 不幸的是,这种方法通常很慢且麻烦,并且只能在公共URL上使用,这使您在构建站点时难以调试,并且当然不能轻松地与开发工具和生命周期集成。 更重要的是,这些基于位图的方法都无法让您调试简单的布局测试。 例如,它们不提供您在布局调试系统中期望的DOM检查工具。

A little over a year ago, Microsoft released its first concerted attempt to make Internet Explorer testing easier: the SuperPreview—er…preview. In the year since its test-launch, a number of notable events have taken place.

一年多以前,Microsoft发布了它的第一个协同尝试,以简化Internet Explorer测试:SuperPreview –er…preview。 自测试发布以来的一年中,发生了许多值得注意的事件。

Firstly, SuperPreview now incorporates non-Microsoft browsers into its test bed, which means you no longer need to switch out to test Firefox or Safari. It’s also become a much more mature, finished product. Finally, SuperPreview has been integrated into Microsoft’s main web development play, Expression Web.

首先,SuperPreview现在将非Microsoft浏览器纳入其测试平台,这意味着您不再需要切换到测试Firefox或Safari。 它也已成为更加成熟的成品。 最后,SuperPreview已集成到Microsoft的主要Web开发工具Expression Web中。

So, if you’re late to the SuperPreview party, let me give you the executive summary.

因此,如果您迟到SuperPreview派对,请允许我给您执行摘要。

When you’re done, remember to have a go at our Microsoft-sponsored Article Quiz.

完成后,请记住去参加我们微软赞助的Article Quiz

进行基本测试 (Conducting a Basic Test)

From Expression Web, launching SuperPreview for the current page is simple: choose Display in SuperPreview from the File menu. Once SuperPreview loads, you’ll see the display shown in Figure 1, “SuperPreview awaiting browser selection” as the program waits for you to select your desired browser.

在Expression Web中,为当前页面启动SuperPreview很简单:从File菜单中选择Display in SuperPreview 。 加载SuperPreview后 ,程序将等待您选择所需的浏览器, 如图1所示,“ SuperPreview等待浏览器”显示。

Figure 1. SuperPreview awaiting browser selection

图1.等待浏览器选择的SuperPreview

superpreview_使用SuperPreview进行跨浏览器开发

Select Internet Explorer 8, on th left-hand side, as shown in Figure 2, “Selecting IE8”.

选择左侧的Internet Explorer 8, 如图2“选择IE8”所示

Figure 2. Selecting IE8

图2.选择IE8

superpreview_使用SuperPreview进行跨浏览器开发

And on the right, click on Firefox 3.6.3, as shown in Figure 3, “Selecting Firefox 3.6.3”.

然后在右侧,单击Firefox 3.6.3, 如图3,“选择Firefox 3.6.3”所示

Figure 3. Selecting Firefox 3.6.3

图3.选择Firefox 3.6.3

superpreview_使用SuperPreview进行跨浏览器开发

And voilà! You now see a side-by-side comparison rendering of your page like the one shown in Figure 4, “Comparing the site, at a glance, in different browsers”.

! 现在,您可以看到页面的并排比较渲染, 如图4所示,“一目了然,在不同的浏览器中比较站点”

Figure 4. Comparing the site, at a glance, in different browsers

图4.在不同的浏览器中一目了然地比较站点

superpreview_使用SuperPreview进行跨浏览器开发

If you want to test the page in other browser versions, simply click on the add (+) button next to the browser you need, as shown in Figure 5, “Adding more browser versions to the test”.

如果要在其他浏览器版本中测试页面,只需单击所需浏览器旁边的添加( +)按钮, 如图5“向测试中添加更多浏览器版本”所示

Figure 5. Adding more browser versions to the test

图5.将更多浏览器版本添加到测试中

superpreview_使用SuperPreview进行跨浏览器开发

支持哪些浏览器? (Which Browsers Are Supported?)

So, which browsers are supported by SuperPreview? Out of the box, the tool supports IE6, IE7, IE8, and IE8 in Compatibility Mode. To add Firefox, simply install th browser on your machine.

那么,SuperPreview支持哪些浏览器? 该工具开箱即用,在兼容模式下支持IE6,IE7,IE8和IE8。 要添加Firefox,只需在计算机上安装浏览器。

Interestingly, SuperPreview also supports Safari 4.0.4 on OSX. I’m sure you’re a little curious as to how Safari on OSX magically renders on a Windows PC. The answer is that Microsoft has implemented a web service that renders Safari on OSX in the cloud.

有趣的是,SuperPreview还支持OSX上的Safari 4.0.4。 我敢肯定,您对OSX上的Safari如何在Windows PC上神奇地渲染感到好奇。 答案是微软已经实现了一种网络服务,可以在云中的OSX上呈现Safari。

To enable this feature, simply click on the Remote Browser button on the main tool bar, as illustrated in Figure 6, “The Remote Browser button”.

要启用此功能,只需单击主工具栏上的Remote Browser按钮, 如图6中的“ Remote Browser按钮”所示

Figure 6. The Remote Browser button

图6.远程浏览器按钮

superpreview_使用SuperPreview进行跨浏览器开发

You’ll be prompted to sign in for a free Remote Browser account. And from now on, whenever you choose to get a page render using Safari on OSX, SuperPreview will call the web service and bring back a render. Pretty cool, eh?

系统会提示您登录免费的远程浏览器帐户。 从现在开始,无论何时选择在OSX上使用Safari获取页面渲染,SuperPreview都会调用Web服务并带回渲染。 很酷吧?

翻译自: https://www.sitepoint.com/browser-superpreview/

superpreview

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-07-29
  • 2021-12-18
  • 2021-09-01
  • 2021-07-19
  • 2021-07-06
猜你喜欢
  • 2021-11-29
  • 2021-11-04
  • 2021-11-16
  • 2021-10-07
  • 2022-01-20
  • 2021-05-22
相关资源
相似解决方案