【问题标题】:Using callPhantom through karma runner通过 karma runner 使用 callPhantom
【发布时间】:2018-01-02 11:02:01
【问题描述】:

我一直试图弄清楚在通过 Karma 运行测试时如何执行 CallPhantom 函数。我找到了两个似乎有解决方案的页面:

但遗憾的是,我似乎无法正确执行调用。我似乎也无法真正更改更奇怪的 windowName。

我创建了一个 repo 来显示我目前所处的位置,并将其精简为 Karma、Phantom 和 Mocha,以便尽可能地获得一个纯粹的示例。希望有人可以提供帮助!

https://github.com/rickyp-ms/example-karma-phantom-callPhantom-sendEvent/

【问题讨论】:

    标签: phantomjs mocha.js karma-runner


    【解决方案1】:

    发帖到https://github.com/karma-runner/karma-phantomjs-launcher/issues/19后找到答案。事实证明,console.logs 不起作用,所以这是唯一的问题。它实际上确实最终起作用了。

    我以提出一个新的变化为例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-10
      • 1970-01-01
      • 2013-07-17
      • 2014-11-09
      • 2013-05-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多