Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE7 jQuery1.7.0でテストケース『h5.ui.indicator() テーマを変更して実行』が失敗する #141

Closed
fukudayasuo opened this issue Dec 26, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@fukudayasuo
Copy link

IE7, jQuery1.7.0で、インジケータで追加したDOMのスタイルを取得するテストで止まってしまう。

$percentElem.css('font-size')

ディベロッパツールで確認したところ、上記で箇所でエラーが起きて止まっていた。

@ghost ghost assigned fukudayasuo Dec 27, 2012
fukudayasuo pushed a commit to hifive-labs/hifivemain that referenced this issue Jan 8, 2013
font-sizeのスタイルの適用を確認をやめました(colorで確認しています)
@fukudayasuo
Copy link
Author

$().css()でスタイルを取得するとき、IEではcurrentStyleオブジェクト内の値を取得します。
しかし、currentStyleオブジェクトは非同期であるため
( MSDN: http://msdn.microsoft.com/en-us/library/ie/ms535231(v=vs.85).aspx )
同期で取得できない場合があります。

そのため、テストではインジケータの表示から100ms待ってからスタイルが適用されているかどうかを確認するようにしました。

また、font-sizeとcolorの両方を確認していましたが、colorだけを確認するようにしました。

@simdy simdy closed this as completed Feb 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants